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
505 B

  1. 10 rem DATAREAD.BAS -- Test DATA, READ, and RESTORE Statements
  2. 20 print "DATAREAD.BAS -- Test DATA, READ, and RESTORE Statements"
  3. 30 DATA "Ted", 56.789
  4. 40 REM just to see if it advances correctly
  5. 50 DATA "Dale", 45.678
  6. 60 READ N$, NUMBER, ANOTHER$
  7. 70 READ ANUMBER
  8. 80 PRINT "Data read: ";N$;" ";NUMBER;" ";ANOTHER$;" ";ANUMBER
  9. 90 RESTORE 30
  10. 100 READ ANOTHER$
  11. 110 READ ANUMBER, N$,NUMBER
  12. 120 PRINT "After RESTORE:"
  13. 130 PRINT "Data read: ";ANOTHER$;" ";ANUMBER;" ";N$;" ";NUMBER
  14. 140 END