For standalone executable games that both read from and write to (create or change) text files, .NET data streams are often used for both reading and writing. This recipe illustrates how to read a text file, while the next recipe illustrates how to write text data to files.
This technique only works when you compile to a Windows or Mac standalone executable; it will not work for WebGL builds, for example.