@ Dark basic dude79:
Always remember that the file cannot exist before you write a new file so make sure you add code to delete the file if it exists before you write a new file.
` Check if the file exists and delete it
if file exist("filename.txt") then delete file "filename.txt"
open to write 1,"filename.txt"
write string 1,"text"
close file 1
If you forget that simple rule you'll end up pulling out all your hair because the file isn't saving right.
@ Brk_oth:
It's great that you told him to CLOSE FILE... a lot of people forget to tell newbies that.