Pages

Showing posts with label FILE HANDLING FUNCTIONS IN C. Show all posts
Showing posts with label FILE HANDLING FUNCTIONS IN C. Show all posts

Saturday, August 1, 2020

FILE HANDLING FUNCTIONS IN C


File handling functions are used to perform different types of tasks and there are different types of file handling functions in C programming language, which mentioned below.


FILE FUNCTION
DESCRIPTION
fopen()
To create a new file or open an existing file
fclose()
To closes a file
getc()
To reads a character from a file
putc()
To writes a character to a file
fscanf()
To reads a set of data from a file
fprintf()
To writes a set of data to a file
getw()
To reads a integer from a file
putw()
To writes a integer to a file
fseek()
To set the position to desire point
ftell()
To gives current position in the file
rewind()
To set the position to the beginning point


FILE WRITING IN C >>