This recipe illustrates how to use C# streams to write text data to a text file, either into the standalone project's Data folder or to the Resources folder.
This technique only works when you compile to a Windows or Mac standalone executable.
This recipe illustrates how to use C# streams to write text data to a text file, either into the standalone project's Data folder or to the Resources folder.
This technique only works when you compile to a Windows or Mac standalone executable.
In the 11_02 folder, we have provided a text file containing the completed C# script class created in the previous recipe:
FileReadWriteManager.cs
To save external text files using C# file streams, follow these steps: