Hello!
I’m little bit confuse cause I’m trying to open file on my android device by this way :
public void isFileExist()
{
if (File.Exists(Path.Combine(persitantPath, FILE_NAME)))
{
Debug.Log("File exist");
//Read the file
}
else
{
Debug.Log("File doesnt exist");
// create the file
}
}
When I launch the game for the first time the file is not in the device (ofcourse^^ it’s the first time) and the game create the file (I verified on the device that’s works).
If I restart the game the File.Exist method return always false.
If I launch 2 times the method “isFileExist” after building (first time I get False from “File.Exist” and the Second time that’s works but the file is on device before launching.
PS: On my computer the code works with no problems , I download the apk from google play, I have all access for writing on the device and I’m going crazy :S
Thanks for help. ![]()