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.

You can’t write files in the webplayer for security reasons.