Need for a data file, Types of data files - Text file and Binary file;
Basic file operations on text file: Creating/Writing text into file, Reading and Manipulation of text from an already existing text File (accessing sequentially);
Binary File: Creation of file, Writing data into file, Searching for required data from file, Appending data to a file, Insertion of data in sorted file, Deletion of data from file,
Components of C++ to be used with file handling: Header file: fstream.h; ifstream, ofstream, fstream classes;
Opening a text file in in, out, and app modes; Using cascading operators for writing text to the file and reading text from the file; open(), get(), put(), getline() and close() functions;
Detecting end-of-file (with or without using eof() function); Opening a binary file using in, out, and app modes; open(), read(), write() and close() functions; Detecting end-of-file (with or without using eof() function);