File Handling in C++: Working with File Streams
C++ structures different file stream classes into an inheritance hierarchy. Input and output (I/O) operations are performed in C++ through streams which act as intermediaries between the program and I/O devices allowing programmers to not focus on how the actual device works. In this course learn about the different classes and objects for C++ stream handling. Next discover how to read data from files using objects of the ifstream class. Finally practice writing out data to files using objects of the ofstream class including writing out simple integers floats strings and structured data. Upon completion youll be able to enumerate C++ file stream classes read data from files using ifstream and write data to files using ofstream.