Kamis, 08 Desember 2016

How to handle errors in I/O operations in C programming

While writing programs which involve accessing files, certain errors might occur while performing I/O operations on a file. Some of the error situations include the following: Trying to read beyond the end-of-file mark. Device overflow. Trying to use a file that has not been opened. Trying to perform an operation on a file, when the file is being use by another application. Opening a file with invalid name. Attempting to write to write-protected file. If such errors are unchecked, it may lead to abnormal termination of the program or may lead to incorrect output. C library provides two functions namely

The post How to handle errors in I/O operations in C programming appeared first on Coding Security.


How to handle errors in I/O operations in C programming
read more

Tidak ada komentar:

Posting Komentar