Sunday, 27 December 2015

File Handling in C++

File Handling in C++

File handling in C++ is the most important concept which is used to store our data permanently in a computer.
file handling in C++

The main aim of file handling is to store data permanently, Here I will show you how to achieve file handling in C++.

Steps to follow for file handling in C++;


  1. Start the program.
  2. Declare the variables.
  3. Get the file name to read.
  4. Using ifstreamin(filename) check whether the file exists.
  5. If the file exists then check for the end of file condition.
  6. Read the contents of the file.
  7. Print the contents of the file.
  8. Stop the program.
I hope this article is helpful for you; for more information, you can visit our website;

That's it.

No comments:

Post a Comment