How do I access file after I save it to persistent data path on android? I looked all over my mobile files and I could not find the saved file. When I ran debugging it pointed me to location that does not exist on my mobile? storage/emulated/0
for code I use stream writer
string[][] output = new string[rowData.Count][];
for (int i = 0; i < output.Length; i++)
{
output[i] = rowData[i];
}
int length = output.GetLength(0);
string delimiter = ",";
StringBuilder sb = new StringBuilder();
for (int index = 0; index < length; index++)
sb.AppendLine(string.Join(delimiter, output[index]));
string filePath = getPath();
StreamWriter outStream = System.IO.File.CreateText(Application.persistentDataPath +
"/results" + settings.IdentificationNumber + ".csv");
outStream.WriteLine(sb);
outStream.Close();
I have no issue with getting this same code to work on pc.