I'm having an issue with the reading of text files created by my app. GetFileExists is failing to see txt files saved in the Local-AGKApps-appname-media folder. I've made an app where I required people to be online and some requested an offline version. So I'm saving everything they do in a text file to be uploaded when they're online next. My app created the offlineLog.txt file in the media folder like it was supposed to. So I closed it, then put it in online mode and was going to test my uploadSessions() function but it never triggered. In debug, it skips right past the below as I'm guessing GetFileExists is returning 0 even though the file is there. Yes, the file names match and yes offline is = 0 during debug. I copied the name straight from the file to my code just in case. I also tried making a new txt file called "ab.txt" and changing the below if statement to look for it instead and it still failed. I then changed it to an older file and GetFileExists passed and continued to my function. I was having this issue earlier too where it wasn't seeing txt files so I deleted them all and remade them a couple times and it finally started working. Can anyone please illustrate what the issue may be? The app will be creating the text files itself, they'll not be anything I pre-package so they need to work.
if offline = 0 and GetFileExists("offlineLog.txt") = 1
uploadSessions()
endif