Formatted Input Output in C++:
In formatted input/output data is stored in the file as a series of characters. One character or digit takes one byte to store n the disk. Thus the number 216.98 takes 6 bytes —one byte for each digit, including the decimal point. Similarly, data or records from these files are accessed in the same order in which they arc written on the disk.
Formatted input/output tiles are also known as sequential access files. In sequential access tiles the data is read /written in a sequence. To read a specific data item from a file, the tile is read from the beginning till the required data item is reached. This method of accessing data or records from a tile is slow. Also the data in sequential files cannot he add, updated and deleted easily.

comment closed