Can I read a multi-item data file into an array?
Posted: Thu Aug 04, 2016 1:47 pm
I would like a string array of about 40 items.
Each item would be a hex string e.g "5EA1A857".
But I would also need to change the whole 40 items at once at the click of a button.
The simplest way (for me) would be to create two comma separated data files in visual basic or excel then have BASIC read a specified file into the single array.
Looking at the documentation on the 'read' command it seems to just read a single named item from somewhere.
Is there a way to read multiple values into an array?
Each item would be a hex string e.g "5EA1A857".
But I would also need to change the whole 40 items at once at the click of a button.
The simplest way (for me) would be to create two comma separated data files in visual basic or excel then have BASIC read a specified file into the single array.
Looking at the documentation on the 'read' command it seems to just read a single named item from somewhere.
Is there a way to read multiple values into an array?