{I+=codeWee;}
[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
HTML | PHP | C++ | DirectX11 | Javascript | C# | HTML5 | ASP | SQL | General | CSS | Oculus Rift | Unity3d | Virtools SDK | Tip | NSIS | PowerShell | node.js | Web API | RTSP | All
Copyright© 2016 CodeWee.com All rights reserved.