I read C++ Streams vs. C-style IO? (amongst other pages) to try to help me decide which way to implement some file IO in a project I'm working on.
Background I'm fairly new to C++ and Windows programming, I've traditionally worked in C and command line applications. Apologies ahead of time for the n00b-ness of this question.
The problem I want to read one text file, process the contents and output to another (new) text file. I am working in a Win32 environment (and this won't change for the forseeable future) and am writing the application to be Unicode aware, through _T style macros. The "processing" could include inserting/appending/deleting the lines of text, which will be at most 128 characters.
The question I would prefer to write something that is going to be robust, so I/O error handling is a consideration. I think that I need to stay away from C style file I/O if for no other reason than to simplify the code and type checking -- ie approach this in a more OO POV. What are the advantages of using Win32 API functions over the C++ stream functions (if any)? Can you recommend a good primer for either approach? (My googling has left me with a little information overload)
Thanks muchly