File handling in C
0 3046
File handling in C language can be used for the following functions like opening a file, reading a file, writing a file, searching a file, or closing a file.
It also can be used for the permanent storage of the data.
Functions of File Handling in C Language are the following:
- fopen: It functions as opening a file.
- fclose: It functions as closing a file.
- getc: It functions as reading a character from a file.
- putc: It functions as writing a character to a file.
- getw: It functions as reading an integer.
- putw: It functions as writing an integer.
- fprintf: It functions as printing output to a file.
- fscanf: It functions as reading formatted input from a file.
- fgets: It functions as reading a string of characters from a file.
- fputs: It functions as writing a string of characters to file.
- feof: It functions as detecting an end of file marker in the file.
Share:
Comments
Waiting for your comments