- Home /
File.IO WriteAllText not working?
Hello, I have an error reported by a customer who has purchased my asset.
The error is "error CS0117: `System.IO.File' does not contain a definition for `WriteAllText'"
The line in question is: File.WriteAllText(somePath, someString);
It is reported to occur when switching to the Web Player platform, however I haven't been able to reproduce the bug. What could be the reason why "WriteAllText" is not found in this case? Thanks.
Comment
Answer by Eric5h5 · Oct 03, 2012 at 04:26 PM
You can't write files in the webplayer for security reasons.
That's understandable. However, the File.WriteAllText is in an editor script. Surely that shouldn't be a problem?
Your answer
