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 line. can anyone help me to solve this problem?
|