Writing to external files!

I was wondering if unity can read and write files (text or other)? If it can how do I do it? is there documentation? and if I can how do I save to a specific location and load it back from there?

thanks

1 Answer

1

You'll be wanting System.IO. There are various other questions and answers along similar lines including:

http://answers.unity3d.com/questions/51119/creating-a-file-and-writing-into-it-p/51128#51128

Note that this will not work if you are building for the web player. (Thanks DaveA for pointing this out in the comments below)

As long as it's standalone or mobile. Not web.

Is there anyway to do it with java?

System.IO works in java too, just "import System.IO;".