Posts
 
Reputation
Joined
Last Seen
Strength to Increase Rep
+0
Strength to Decrease Rep
-0
0% Quality Score
Upvotes Received
0
Posts with Upvotes
0
Upvoting Members
0
Downvotes Received
2
Posts with Downvotes
2
Downvoting Members
2
2 Commented Posts
0 Endorsements
~3K People Reached
Favorite Forums
Favorite Tags
c++ x 9
Member Avatar for missty

can anyone tell me how can i create a function like: [QUOTE]if ("the txt file is blank") dosomething;[/QUOTE] which is checking if the text file is empty and then do something.

Member Avatar for Dave Sinkula
0
3K
Member Avatar for missty

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 …

Member Avatar for Dave Sinkula
0
197