Hi there.
Not sure if this can help...this piece of code reads all values in the same string and add to stack.
Open to read 1, "data.txt"
for t=1 to 100
Read String 1, my_data$
Split String my_data$, chr$(34) `all string between "" quotation marks
For i = 1 to 10
Split_chunk$ = Get Split Word$(i)
If Split_chunk$ = "D"
dato$ = Get Split Word$(i+2)
Split string dato$, " "
d1 = val(Get Split Word$(1)) `get a value ...for exsample 10 20 30 55
d2 = val(Get Split Word$(2))
d3 = val(Get Split Word$(3))
d4 = val(get split word$(4))
d5 = val(get split word$(5))
d6$ = get split word$(6) `get a string ...for example an image name
endif
next
next
do
set cursor 0,0
print "d1 = ",d1
print "d2 = ",d2
print "d3 = ",d3
print "d4 = ",d4
print "d5 = ",d5
print "dy = ",d6$
sync
loop
remstart
Content of Data.txt -----------------
"D" "52 31 64 40 16 photo.jpg"
Remend
I'm not a grumpy grandpa
