[Unity3d] How to write text file at a path of root on Android device using Unity
// string folder = "file:///sdcard/myFolder"; --> This is NOT real path. Use following path.
string path = string.Format("{0}/../../../../myFolder", Application.persistentDataPath);
string myFileName = string.Format("{0}/myFile.txt", path);
System.IO.StreamWriter sw = new System.IO.StreamWriter(myFileName);
sw.WriteLine("Hello!");
sw.Close();
// Set the Write Access to External (SDCard) when you put the app on your phone. This option is found in Player Settings > Other Settings