Bankstream - Readline

BlitzMax Forums/BlitzMax Beginners Area/Bankstream - Readline

The Forum Archive is locked. These are the original blitzbasic.com forums, kept so their posts can still be read and searched. No new topics, replies or edits can be made here. To join the conversation, head over to the Blitz3D+ forums.

The position of the stream is altered after the write, so there is no data to read.
Try seeking to the beginning before reading.
Local mbank:TBank = CreateBank()
Local mbstream:TBankStream = CreateBankStream (mbank)
Local t:String = "Line"
mbstream.WriteLine (t)
mbstream.Seek(0) ' <------
t = mbstream.ReadLine()
Print t