Prolem Loading Data From File

BlitzMax Forums/BlitzMax Beginners Area/Prolem Loading Data From File

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.

File = OpenFile(path)
If Not file Return
line:String = ReadLine File

Here is my code - i get a compiling error:
"Compile Error:Unable to convert from 'String(TStream)' to 'String'
[/BMAX LEARNING/Tile Game/Level Creator.bmx;174;2]"

Line 174 is the last line I posted here. The two lines above I thought might be relevant. Thanks in advance for your help, Will.