
This declaration is needed for communication between the file and the program. When working with files, you need to declare a pointer of type file.

Instead of storing data in plain text, they store it in the binary form (0's and 1's). They take minimum effort to maintain, are easily readable, and provide the least security and takes bigger storage space.

You can easily edit or delete the contents. When you open those files, you'll see all the contents within the file as plain text. You can easily create text files using any simple text editors such as Notepad. When dealing with files, there are two types of files you should know about: You can easily move your data from one computer to another without any changes.However, if you have a file containing all the data, you can easily access the contents of the file using a few commands in C. If you have to enter a large number of data, it will take a lot of time to enter them all.Storing in a file will preserve your data even if the program terminates.

