ChipMaster's bwBASIC This also includes history going back to v2.10. *WARN* some binary files might have been corrupted by CRLF.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

15 lines
404 B

  1. 10 PRINT "OPENTEST.BAS -- Test OPEN, EOF(), PRINT#, LINE INPUT#, and CLOSE"
  2. 20 OPEN "test.out" FOR OUTPUT AS # 1
  3. 30 PRINT #1,"This is line 1."
  4. 40 PRINT #1, "This is line 2."
  5. 45 PRINT #1, "ChipMaster WAS here!!"
  6. 50 CLOSE #1
  7. 60 PRINT "Read from file:"
  8. 70 OPEN "test.out" FOR INPUT AS #1
  9. 80 WHILE NOT EOF(1)
  10. 90 LINE INPUT #1,A$
  11. 100 PRINT "> "; A$
  12. 110 WEND
  13. 120 CLOSE #1
  14. 130 PRINT " --- END OF LINE ---"