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.

opentest.bas 328 B

3 years ago
123456789101112
  1. 10 PRINT "OPENTEST.BAS -- Test OPEN, 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. 50 CLOSE #1
  6. 60 OPEN "test.out" FOR INPUT AS #1
  7. 70 LINE INPUT #1,A$
  8. 80 LINE INPUT #1,B$
  9. 90 PRINT "Read from file:"
  10. 100 PRINT ">";A$
  11. 110 PRINT ">";B$
  12. 120 CLOSE #1