Restore ? Data list_of_values

Blitz3D Forums/Blitz3D Beginners Area/Restore ? Data list_of_values

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Here is a example of how to do Restore? But I want to get data from a text.txt file?

My question is how can I read from a file?
.startData
;something like this
test=Read( "test.txt" ) ???




Print "Here we go!"

; Restore to the start of the Data statements
Restore startData

; Get the first number which is the total number of users
Read Users

; Print them all!
For T = 1 To Users
Read firstname$
Read age
Read accuracy#
Read lastname$
Print firstname$ + " " + lastname$ + " is " + age + " years old with " + accuracy# + " accuracy!"
Next

While Not KeyHit(1)
Wend
End

.startData
Data 3
Data "Shane", 31, 33.3333, "Monroe"
Data "Bob", 28, 12.25, "Smith"
Data "Roger", 54, 66.66, "Rabbit"