QuothTheRaven, not quite (hey, that's good, wonder why Mr E.A. Poe didn't use that line?). When you use the READ command, you get the next data item in the list, it doesn't matter if they are on separate lines or what.
If you did this,
1,1,1,1
1,0,0,1
1,0,0,1
1,1,1,1
and read
for i=0 to 3
for j=0 to 3
read level(j,i)
next j
next i
you put the first statement 1 into level(0,0)
1 into level(1,0)
1 into level(2,0)
1 into level(3,0)
then next i, next line of the data statement.
1 into level(0,1)
0 into level(1,1)
0 into level(2,1)
...
etc.
However it works the same way using
1,1
1,1
1,0
0,1
1,0
0,1
1,1
1,1
for i=0 to 3
for j=0 to 3
read level(j,i)
next j
next i
you put the first statement 1 into level(0,0)
1 into level(1,0)
next line of the data statement, but not next i
1 into level(2,0)
1 into level(3,0)
then next i, next line of the data statement.
1 into level(0,1)
0 into level(1,1)
next line of the data statement
0 into level(2,1)
...
etc
It doesn't matter how you arrange the data statements, as long as you read them in the right order.
data 1,1,1,1
data 1
data 0,0,1,1,0,0,1
data 1,1,1
data 1
would probably work, but is slightly less helpful when looking at the code.
Once I was but the learner,
now, I am the Master.