What's even more weird, if I run the program below I get the data on the screen but any file in the media folder doesn't get changed, the file isn't created in the media folder if it doesn't already exist either.
I'm coding my own level editor, so I really need the file to be in the folder so that I can copy and paste it into any game projects.
fileName$ = "test.txt"
fExist = 0
if GetFileExists(fileName$) = 1
file = OpenToWrite(fileName$, 0)
WriteLine(file, "New Data")
CloseFile(file)
fExist = 1
endif
do
file = OpenToread(fileName$)
do
if FileEOF(file) = 1 then exit
print(ReadString(file))
loop
CloseFile(file)
print(fExist)
sync()
loop