Jumat, 11 November 2016

what is End of the File? How to detect End of the File in C programming

While reading data from a file, if the file contains multiple rows, it is necessary to detect the end of file. This can be done using the eof() function of ios class. It returns 0 when there is data to be read and a non-zero value if there is no data. Following program demonstrates writing and reading multiple rows of data into the file: 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 30 31 32 33 34 35 36

The post what is End of the File? How to detect End of the File in C programming appeared first on Coding Security.


what is End of the File? How to detect End of the File in C programming
read more

Tidak ada komentar:

Posting Komentar