C++ file stream
I now many basics techniques in C++, but I discovered what I didn't know C++ file stream. Does i need to know it well and will I'll be using it (if I'll learn) in creating games?
Also It would be nice if someone drop here some link to it's tutorial, because I didn't found anything good...
Do you know how to use cin and cout? If you do, then you already know everything you need to know about ifstream and ofstream.
Otherwise, check out the reference pages.
Otherwise, check out the reference pages.
Since games tend to benefit a lot from a data-driven approach (read, everything that can be configured should be in a file), learning how to work with files is definitely a must. I would also take a look at the link _fastcall gave, it will get you started with basic file I/O. Note that this does not include parsing, meaning that the interpretation of the data you are reading of the input streams is up to you.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement