Quantcast
Channel: Questions in topic: "javascipt"
Viewing all articles
Browse latest Browse all 1875

Problems with writing to a file

$
0
0
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

Viewing all articles
Browse latest Browse all 1875

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>