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
The post How to access the Random I/O in C++ Programming appeared first on Coding Security.
How to access the Random I/O in C++ Programming
read more
Tidak ada komentar:
Posting Komentar