Hey,
Does anyone know how to cpy from one file and redirect to another. I know I have to use the ofstream but I'm stuck.
while (!in1.eof()) // while not end of input file
{
in1.getline(current, 100); // read a character from input file
out1.in
}
I'm stuck. I want to use a while loop to get the line then place it into another file until I've reached end of file.
There is a reason why I'm using getline(), I need the Carriage return (0D) to be present. Some file only have CRLF(0A) and I know getline will place the 0D in the right place thus I'm doing it line by line. Just can't seem to figure out how to redirect the file into another file