Reading/Writing string values to a simple Text File

I am looking to have a simple text file store some general information for a instructional simulator I am building.

I need to be able to read and write to a simple text file durng the Runtime and not just referencing it before a build.

Is this possible with in the current scripting libraries?

I have looked at the TextAsset feature but it appears it lacks this functionality at Runtime.

var asset : TextAsset;
function Start () {
print(asset.text);
}

Suggestions? Someone already have a solution or example?

Thanks in Advance.

-Mark

You’ll want to check out System.IO.File, from the .NET 2.0 library. It’s pretty straightforward. Just remember to include it like this at the beginning of your script:

import System.IO;