I'm stuck with this. I searched all relative posts, but I still couldn't find any solution to my problem.
basically, I just want to save some parameters into a file.
But no file are created. I look everywhere else on my computer, but nothing... I don't see what I could have possibly done wrong.
if sprite exist(9)=1
if mouseclick()=1 and clicked=0 and _spritehit(9)=1
clicked=1
message$="Enter expression name"
size=20
color1=rgb(0,0,0)
gosub _inputstring
expression$="..\..\presets\"+working_squid$+"\"+input$+".exp"
if file exist(expression$)=1 then delete file expression$
open to write 1,expression$
for i=1 to 4
write string 1,str$(selected(i))
write string 1,str$(selection(i))
NEXT
close file 1
endif
endif