Files

You might also like

You are on page 1of 10

C++ 

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

You might also like