YouTube magic that brings views, likes and suibscribers
Get Free YouTube Subscribers, Views and Likes

File Handling in C++ Programming

Follow
Simple Snippets

Support Simple Snippets by Donations
Google Pay UPI ID tanmaysakpal11@okicici
PayPal paypal.me/tanmaysakpal11
What are files and streams?
Files are used to store data permanently.
A stream is an abstraction that represents a device on which input and output operations are performed.
A stream can basically be represented as a source or destination of characters of indefinite length.

Three file handling data types :
ofstream : This data type represents the output file stream and is used to create files and to write information to files.
ifstream : This data type represents the input file stream and is used to read information from files.
fstream : This data type represents the file stream generally, and has the capabilities of both ofstream and ifstream which means it can create files, write information to files, and read information from files.

File Handling in C++ Theory Article https://simplesnippets.tech/filehand...

Simple Snippets Official Website
https://simplesnippets.tech/
Simple Snippets on Facebook
  / simplesnippets  
Simple Snippets on Instagram
  / simplesnipp.  .
Simple Snippets Google Plus Page
https://plus.google.com/+SimpleSnippets
Simple Snippets email ID
[email protected]

posted by Taiariollm