I was working on a quick level editor when I hit a problem. It seams that when I use Make File and then open that file with Open to Write, I cannot write data to it but if I just open a preexisting file, I can write to it.
Help?
Function ExportMap()
Input "Please enter the level name.",Name$
if Find Sub string$(Name$,".txt")<0 then Name$=Name$+".txt"
if File Exist(Name$) then delete file Name$
Make File Name$
Open to Write 1,Name$
For ArrY=0 to 23
Line$=""
For ArrX = 0 to 31
Line$=Line$+Level(ArrX,ArrY)
Next ArrX
Write String 1,Line$
Next ArrY
Close File 1
endfunction
My computer surpasses all the technologies of the day. What computer do I have?