Hi, I am using JavaScript in order to write some game statuses to a text file.
But for some reason, I can't write to them.
My code goes something like:
import System.IO;
import System;
Var filename : string;
Function Start()
{
Var sw = File.Create(filename);
Sw. Write("Test");
}
The weird bit is that the text file is created BUT when I open it, the text isn't there.
I have tried the Stream Builder method and that didn't work so I presume its something wrong with the Sw.Write.
I'm honestly considering having a second script done in C# for writing to the file. Is that advisable as well?
Thank you
↧