Thread
:
Rogue characters on file write
View Single Post
05 October 2012, 17:36
#
5
Leffmann
Join Date: Jul 2008
Location: Sweden
Posts: 2,269
Ok that was it
I had no idea the EOF flag didn't update until after an I/O op. Keep the text mode in mind as well, it will both discard CR bytes as you read and insert new ones as you write. C++ streamed I/O is a real minefield.
Leffmann
View Public Profile
Visit Leffmann's homepage!
Find More Posts by Leffmann
Page generated in
0.12013
seconds with
11
queries