It would seem that the implementation of
ofstream::write feeds a line feed following a carriage
return. My suspicion is that operator<< code was used
to implement this method. That is counter to the
standard and can make for problems that are very
difficult to detect. This glitch makes writing binary
files using ofstream impossible.
Log in to post a comment.