-->

What are the Standard file handling functions in C

Standard file handling functions are:-

Function name
Operation
fopen()
creates a new file for use
opens an existing file for use
fclose()
closes a file which has been opened for use
getc()
reads a character from a file
putc()
writes a character to a file
fprintf()
writes a set of data values to a file
fscanf()
reads a set of data values from a file
getw()
reads an integer from a file
putw()
writes an integer to a file
fseek()
sets the position to a desired point in the file
ftell()
gives the current position in the file (in terms of bytes from start)
rewind()
sets the position to the beginning of the file
fread()
reads from a file
fwrite()
writes to a file



Newest Older

Related Posts

Subscribe Our Newsletter