Yes, forgive me for being such an annoying pain in the padded flesh we sit on.
But one more problem.
I have the text file like this
What happens is when I append that to annother file it ends up like this.
How can I preserve the carriage returns.
How are you reading the file in?
Ok, I use a for loop to read in the file. I do a
then I write it back out the same way.
for(loop = 0; loop < size_of_file; loop++)
FILE >> Buffer[loop];
the >> operator will not read in the whitespace char embedded in the file you are reading so they can be transfered to the new file. You will either need to use getline(), or some other method to preserve desired whitespace, or you will have to add them back hard coded.
Bah, I figured out why ive been having trouble. The file I need to write to is unicode format.