Kamis, 06 Oktober 2016

What is sequential and Random IO in C++

C++ allows data to be read or written from a file in sequential or random fashion. Reading data character by character or record by record is called sequential access. Reading data in any order is known as random access.   The fstream class provides functions like get(), read() for reading data and put(), write() for writing data to a file. The functions get() and put() are character-oriented functions. Syntax of these functions is as follows: get(char) put(char)   Following program demonstrates get() and put() functions: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29

The post What is sequential and Random IO in C++ appeared first on Coding Security.


What is sequential and Random IO in C++
read more

Tidak ada komentar:

Posting Komentar