I am very new with unity and with C# in general so please be kind.
I am using Unity and Fungus to create simple games that are point and click drag and drop style games that basically present a learning topic and a quiz. What I need to figure out is how to save the quiz questions and answers along with the grade to a simple text file. This is a webGL game. Thanks for any answers.
The “System.IO” namespace has filestream classes that allow you to read/write to and from any file format you want, including new ones that you can make up. Usually you have to follow conventions of the file format, but lucky for you, .txt files have no special formatting. Use the StreamWriter class and you can write text to text files… the .txt file will have the exact text you send into the streamwriter. StreamWriter Class (System.IO) | Microsoft Learn