Trouble with eof...

BlitzMax Forums/BlitzMax Beginners Area/Trouble with eof...

Isn't this a bug?
You shouldn't need to seek to the end of the file as you're already there...
Local myfile:TStream = OpenStream("test.txt")
While Not Eof(myfile)
   Print ReadLine(myfile)
Wend
Print myfile.Pos()
SeekStream(myfile, StreamSize(myfile))
Print myfile.Pos()
WriteLine(myfile, "yada")
CloseStream(myfile)
FlushMem
end
...Or have I missed something?