Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Guanta tells the right cause.

However, personally I would discourage the use of C++ streams. Mostly because these can be quite unreadable and most important these are not thread-safe in multi-threaded enviroments. That is, your program may crash spuriously because their internal state may get corrupted.

See also http://google-styleguide.googlecode.com/svn/trunk/cppguide.xml?showone=Streams#Streams and http://stackoverflow.com/questions/5328873/c-streams-vs-c-style-io