Recommended Posts

whats the best (and preferably easiest) way to do file i/o in a win32 app? i have used fstream in dos, and it works in win32, but i don''t know if there is a *better* way to do it. i was reading up on the changes from c to c++, and one of them was updating the old streams (printf, fstream, etc). could someone clear me up?
the madprogrammer

0

Share this post

Link to post

Share on other sites

Just use the standard C or C++ i/o libraries. They work fine, and they require less OS specific code, which is always a plus. I use the C i/o libraries in every program I write, regardless of it''s OS or design philosophy (modular, object oriented, et cetera).

Share this post

Link to post

Share on other sites

quote:Original post by MadProgrammer whats the best (and preferably easiest) way to do file i/o in a win32 app? i have used fstream in dos, and it works in win32, but i don''t know if there is a *better* way to do it. i was reading up on the changes from c to c++, and one of them was updating the old streams (printf, fstream, etc). could someone clear me up?