Problem with ReadLine

Blitz3D Forums/Blitz3D Beginners Area/Problem with ReadLine

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.

Im trying to load some lines from a txt file, but I am having problems...

I use the
----
plname = ReadFile("planets.txt")
----
command to open the txt file, then i use the
----
Read1$ = ReadLine( plname )
Read2$ = ReadLine( plname )
Read3$ = ReadLine( plname )
Read4$ = ReadLine( plname )
----
to load the lines into variables.

When i use the print command (like print Read1$) it works
perfectly, printing the line on screen. But when i try to
copy the read1$ to the global planet$, and send it to an other computer, it turs out empty.

When i check the global planet$ in the debugger, its empty!
But if i print it, it turns out right.

Whats going on???