Writing moves information from the running application into a file.
Reading moves information in the opposite direction.
Suppose lineup.txt already contains:
The two basic operations now connect.
memory → WriteAllText → filefile → ReadAllText → memoryThe C# methods are small.
The conceptual shift is larger.
You can now distinguish information that exists only during the current execution from information that has been persisted and recovered later.