Is there a VB.NET equivalent to READ / DATA in basic?
Posted on 2014-02-20
I want to fill an array Values(20,20) with 400 distinct values. In the old days I could do this with 20 lines of code like this:
DATA 3,12,24,25,67,234 (and so forth)
And then simply "read" the data lines into my array.
How can I fill my array with data without using an external file or database, but just using lines of code without having to do it manually (i.e. Values(1,1) = 3 Values(1,2) = 12 Values(1,3) = 24) Manually would be so time consuming. Is there a nice equivalent to READ/DATA commands in old basic that can quickly fill an array in .NET basic?