How can I asynchronously load and save text files?

My game has several text files that will be included with the app when shipped.

When a player creates a new game, the text files are copied so they can be loaded, edited, then re-saved at runtime.

The load & save process needs to be:

  1. asynchronous
  2. cross-platform, especially for mobile (web player not needed)
  3. available without Unity Pro

The only thing I’ve found that seems to work is WWW but I’m not sure if there are cross-platform problems or if there is a better alternative.

You can use the .NET assemblies for that like ,

Streamreader , reads a file in a stream:

StreamWriter , writes to a file in a stream:

If you want it crossplatform keep the file as text so there are no binary problems whilst porting.