- How do I create a file .txt on sd card and how to write it?
2)How can I make the data as in games from EA games …?
(Data on sdcard)
(How to make the game to read data from sdcard?)
I will be very grateful for answers.
is this for android? or just in general
Yes, for Android.
Ok you cant get specifically into the data folder
you get into Android/data/your.package.name/watever else is here
if you want to get to the above use:
Application.persistantDataPath which holds that the address to Android/data/your.package.name/files
as for creating a .txt file you need to use IO:
File.Create(Application.persistentDataPath + "/fileName.txt");
The above code is C#, also make sure you have System.IO declared in the header (underneath System.Collections) write
using System.IO;
this will create a text file named fileName.txt at place sdcard(usually)/Android/data/your.package.name/files/
then just write strings into the text file.
Thank, you, but:
1)How write in to fileName.txt?
2)How read in to fileName.txt?
3)how can I save textures, 3d models in this folder?
4) How to load textures, 3d models from this folder?
Please, help.