As long as a binary file is not larger than a string can hold, it can be read into a string without any corruption of data, by using the manipulator noskipws.
Reference:
The C++ Standard Library: A Tutorial and Reference
by Nicolai M. Josuttis. Addison-Wesley, 1999., p. 626.
No comments:
Post a Comment