data1.txt example
Warning: if you clip this code into your program, look out for possible html code slipping in.
REM EEPROM array creation and initialization REM DATA and READ REM DATA and READ statements are useful for filling in tables, REM although using CONSTANT arrays is a better idea. Compare this REM file with: REM Keywords\Constant\Constant_Array.txt REM Tables are especially useful for linerarizing A/D inputs. REM Here a short table is created using DATA and READ GLOBAL index AS INTEGER, temp AS INTEGER DATA 1,2,2,3,3,3,4,4,4,4,5,5,5,5,5,6 DIM table[16] AS INTEGER FOR index=0 TO 15 READ temp table[index]=temp NEXT print "\010\013Read the table" FOR index=0 to 15 print "\010\013",index print table[index] NEXT