A file is one way to store information persistently.
When a program writes information to a file, that information can remain available after the program closes.
The next time the program runs, it can read the file and recover the saved information.
This gives the application continuity across separate runs.
A text file contains characters that can be read as text.
For example, a file might contain:
The file acts as the persistent bridge between different executions of the program.
The next two activities show how simple C# code can perform those write and read operations.