I have my game set up so that it saves a number to a txt file after each level (the number tells the level number). However, once the next level starts, the file is deleted or dissapears. I don't know why.
level$=str$(level)
if file exist("save.txt")=1
delete file "save.txt"
ENDIF
open to write 2,"save.txt"
write string 2,level$
close file 2
if file exist("save.txt")=0 then end
goto Labelnew
In Labelnew, there is no command that says delete file. Also, i don't open any other file as file 2, so that isn't the problem either. Any clues?
----edit----
I've found that the code that i've made works in the source, but not in the exe!!! This is starting to be frustrating as this is not the first time the compiler has let me down...
Bio Fox...four guys, one computer, games like nobody's business.