PDA

View Full Version : please help:write to a text file but got a blank first line.


C++
08-22-2009, 09:28 AM
the function is used to write things into a txt file. the function works quite well except there is a blank first line in the txt file. i think the error is caused by "ios_base::app", which always write to the end of the file. i want to write to the end of the file, but i don't want a blank 1st...