FILE HANDLING IN C
File Handling in C: File handling in C is the process in which we create, open, read, write, and close operations on a file. a) Creating a new file. b) Opening an existing file. c) Reading from file. d) Writing to a file. e) Moving to a specific location in a file. f) Closing a file. A file pointer is a reference to a particular position in the opened file. It is used in file handling to perform all file operations such as read, write, close, etc. Access_mode: Specifies for what operation the file is being opened. r --> opens for reading in text mode w --> opens for writing in text mode. a --> opens only in the append mode. r+ --> opens for reading in text mode. w+ --> contents are overwritten. a+ --> opens the file in both reading and append mode. Write to a File: The file write operations can be performed by the functions fprintf(...