- Home /
cvs file is not saved in android
public static string WriteCSV()
{
string savePath = Application.persistentDataPath + "cvsFile.csv";
string[] cvsDataFormatData = new string[BodyDataManager.Instance.bodyDataList.Count];
int index = 0;
foreach (BodyData bodyData in BodyDataManager.Instance.bodyDataList)
{
string data = bodyData.date.ToString() + "," + bodyData.sys.ToString () + "," + bodyData.dia.ToString () + "," + bodyData.weight;
cvsDataFormatData [index] = data;
index++;
}
File.WriteAllLines (savePath, cvsDataFormatData);
}
This does not save in android device though it works in editor windows version. please help me, what is wrong with this code.
Comment
Your answer
Follow this Question
Related Questions
how to read csv file in android external path? 0 Answers
Tween move from CSV works on Editor but not on Android 0 Answers
.xml .csv .txt .json which one can be load and save on Android ? 0 Answers
Android app works on only Xiaomi, not any other Android devices 0 Answers
How to enable ads in your games. 1 Answer