what type for file input ?

BlitzMax Forums/BlitzMax Beginners Area/what type for file input ?

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.

The following reads from a file and outputs the contents to the console.
[codebox]
file=OpenFile("race.bmx")
If Not file RuntimeError "could not open file openfile.bmx"

While Not KeyHit(Key_escape)
Cls

While Not Eof(file)
print ReadLine(file)
Wend
[codebox]

I however want to output the contents the a display using drawtext.I can't use drawtext readline(file),x,y.I need to store the contents of the file in a type but what type? Will a string type hold eofs and multiple lines ? Thanks in advance