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
[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