You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Writes new data to a text file sequentially and reads it back to the program screen.
filename$="testfile.dat"x=1:y=2:z$="Three"OPENfilename$FOROUTPUTAS#1'opens and clears an existing file or creates new empty fileWRITE#1,x,y,z$CLOSE#1PRINT"File created with data. Press a key!"K$=INPUT$(1)'press a keyOPENfilename$FORINPUTAS#2'opens a file to read itINPUT#2,a,b,c$CLOSE#2PRINTa,b,c$END