Input from file no white space characters
I'm reading data in from a file and putting it into a string then appending it to another file. The problem with this is that all the data is put onto one line with no whitespace characters put into outputted file. I assume this is due to the string. Is there any way to be able to output whitespace characters?
Here is part of the code:
Code:
CInput.open(FileName.c_str(), ios::in);
while (!CInput.eof()) //Read until end of file
{
CInput >> FileLine;
FileData.append(FileLine);
}
Thanks,
...Dan