Where read/write external files.

Hi all. I would like to read and write some files during the gameplay (they are txt/xml files). Some files are already created, other will be created by the gamer.

Where should I put the files?

  1. I’ve created a folder “Custom” in the Asset directory. The files are reachable in the unity3d editor, but not in the built one, even if I create an Asset folder manually.

  2. I’ve been used the “Resources” folder, but it seems I cannot update the files or create other files in this folder in the built version, right?

So, where should I put my external files? It should be a writable folder so the gamer could create other files.

Which is the best solution, also considering the possibily to export the game on iPad / Android?

Thanks all!!

Use Application.persistentDataPath in the path for the file.