so i made this BASIC text editor and it is so simple that alls you do is type the file name and type only one line of text and you click enter it says thank you and press enter and it says what you wrote.
well it says runtime error (file not exist) at line 18
so i'm wondering why it won't work. any help is great.
oh and what is sync on/off and how do you use it thanx
NOTE: please no modification just the answer to my problem.......unless the modification fixes the problem
REM Project: Text editor v 1
REM Created: 5/8/2006 7:51:45 PM
REM
REM ***** Main Source File *****
REM
input "what is th file name?", nameoffile$
filename$ = "C:AdamDBP FILE/Text editor v1/ " nameoffile$ ".dat"
IF FILE EXIST (filename$)
DELETE FILE (filename$)
endif
OPEN TO WRITE 1, filename$
Print " what line do you want to type? (letters only) "
input line$
WRITE STRING 1,LINE$
Print "thank you"
close file 1
wait key
open to read 1,filename$
end
No Pain No Gain
DELL 800MHZ 1GB RAM PENTIUM 4 MICROSOFT XP SP2