Hello,
First post, please be gentle! :-)
I've written some code that writes some variables to a text file, basically :
Line$[i]=Name$+Tab$+Score+Tab$+"Level "+Level
Where Tab$=Chr(9)
This writes perfectly, tabs and all, however when I read back the file with :
Repeat
ScoresDone=1
Line$[i]=ReadLine(fileread)
i=i+1
Until Eof(fileread)
Then display with a loop for each and the command:
DrawText(Line$[loopvariable]),x,y)
the tabs aren't included on screen. If I use the print command, they display on the output box as I see them if I open the text file?
I've searched the forums, but to no avail - how do I get tabs to display with the drawtext command?
Any help gratefully received!
Thanks.
First post, please be gentle! :-)
I've written some code that writes some variables to a text file, basically :
Line$[i]=Name$+Tab$+Score+Tab$+"Level "+Level
Where Tab$=Chr(9)
This writes perfectly, tabs and all, however when I read back the file with :
Repeat
ScoresDone=1
Line$[i]=ReadLine(fileread)
i=i+1
Until Eof(fileread)
Then display with a loop for each and the command:
DrawText(Line$[loopvariable]),x,y)
the tabs aren't included on screen. If I use the print command, they display on the output box as I see them if I open the text file?
I've searched the forums, but to no avail - how do I get tabs to display with the drawtext command?
Any help gratefully received!
Thanks.