well lets see here.... what im seeing is two variables, var and t... im not sure if you are trying to save var or t, my instincts told me you accidently put t instead of var, but assuming you are not that noobish, i will try to help assuming t is correct...
for one you are not deleting a file called file.txt if it exists, which means the code will fail... i also recommend gosubs but i wont go there...
saves:
var = var + 1
if file exist("file.txt") = 1 then delete file "file.txt"
open to write 1,"file.txt"
write file 1,t
close file 1
loads:
if file exist("file.txt") = 0 then rem some kind of error code
open to read 1,"file.txt"
read file 1,t
close file 1
i hope that helps, if there is another problem let me know.
To call the French scumbags would be a great disservice to bags full of scum.