In programming we use variables to store data. Variables are powerful at storing data, but they are volatile. They lose their value after program termination.
However, their exists situations where we want persistent data. The data should persist even after program termination and can be used anytime later. A file is a physical storage location on disk where data is persisted (stored permanently). We use file to store data permanently on hard disk, that can be used in future.
Continue reading File handling programming exercises and solutions in C