Computer Science, asked by daminisahu7415, 12 days ago

explain types of file handing​

Answers

Answered by shirkeshravani05
0

Answer:

Functions for file handling

No.FunctionDescription1fopen()opens new or existing file2fprintf()write data into the file3fscanf()reads data from the file4fputc()writes a character into the file7 more rows

File Handling in C

In programming, we may require some specific input data to be generated several numbers of times. Sometimes, it is not enough to only display the data on the console. The data to be displayed may be very large, and only a limited amount of data can be displayed on the console, and since the memory is volatile, it is impossible to recover the programmatically generated data again and again. However, if we need to do so, we may store it onto the local file system which is volatile and can be accessed every time. Here, comes the need of file handling in C.

File handling in C enables us to create, update, read, and delete the files stored on the local file system through our C program. The following operations can be performed on a file.

Creation of the new file

Opening an existing file

Reading from the file

Writing to the file

Deleting the file

Similar questions