I- UNITY_EDITOR
Use same API with .NET with class System.IO.File

II- UNITY_MOBILE
1. Read

 TextAsset a = Resources.Load<TextAsset>("text_files/text");
 txt_Name.text = a.text;

Note: The file name doesn’t contain the extension!
2. Write

Advertisements