Joined
Last Seen
-8 Reputation Points
- 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
0 Endorsements
Ranked #22.5K
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. |
|
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 … |