Professional Documents
Culture Documents
Files
Files
Files
Files
File Handling through C++ Classes
Operations in File Handling:
•Creating a file: open()
•Reading data: read()
•Writing new data: write()
•Closing a file: close()
Let's look at the syntax of opening a file.
We can also open the file for both reading
and writing purposes. Let's see how to do this:
Reading and writing on a file