I’ve been searching for quite a while on this subject. And people tend to allways write in javascript here. I kinda have an idea of how this works. (this question helped me alot, but didnt answer how to write it in C#) I basicly want the same thing as this guy… But just in C#. Scriptrefference didnt help me either.
You’ll notice that I’m the one who replied to the link you posted, and I code in C#.
The method I was using is still valid,
System.IO.File.WriteAllText("C:\blahblah_yourfilepath\yourtextfile.txt", "This is text that goes into the text file");
Is part of C#'s standard library, but you won’t find this documented in the script reference, because it’s not part of the Unity API, it’s a standard .Net method. Look to MSDN for documentation on such. Here’s the link, for your convenience: