The input-output function, like printf() scanf(), getchar(), putchar(), gets(), puts() are known as console oriented I/O functions, which always use keyboard for input device. While using these library functions, the entire data is lost when either the program is terminated or the computer is turned off. At the same time, it is cumbersome and time-consuming to handle a large volume of data through the keyboard. It takes a lot of time to enter the entire data. If the user makes a mistake while entering the data, he/she has to start from the beginning again.
In this “File Handling (File Input/output) – C Programming” you will learn about the following topics:
- Data Files
- Stream Oriented
- Text Files, Binary Files
- System Oriented
- File Pointer in C
- Opening and Closing a Data File
- File Opening Mode
- Write (“w”), Append (“a”), Read (“r”), Write and Read (“w+”), Read and Write (“r+”), Append and Read (“a+”)
- Library Functions for Reading or Writing From or to a File
- Unformatted Input/output Functions
- Character Input/Output Functions
- String Input/Output Functions
- Formatted Input/Output Functions
- End of File (EOF)
- Predefined File Pointer
- Record Input/output Files
- Record Input/output in Binary Mode
- Random Access to File
- fseek(),rewind(), ftell()
==== Point to Note ====
This article File Handling (File Input/output) – C Programming is contributed by Naresh Prasad Das, a student of Tribhuvan University.
If you like to contribute, you can mail us BCA Notes, BCA Question Collections, BCA Related Information, and Latest Technology Information at [email protected].
See your article appearing on BCA Notes (Pokhara University) main page with your designation and help other BCA Students to excel.
Please write comments if you find anything incorrect, or you want to share more information about the topic discussed above.
0 Comments