Stream Docs

BlitzMax Forums/BlitzMax Beginners Area/Stream Docs

The following code came right from the docs, but generates an exception.
' readstream.bmx

' opens a read stream to the blitzbasic.com website and
' dumps the homepage to the console using readline and print

in=ReadStream("http::blitzbasic.com")

If Not in RuntimeError "Failed to open a WriteStream to file mypage.htmlhttp::www.blitzbasic.com"

While Not Eof(in)
	Print ReadLine(in)
Wend
CloseStream in



How can I fix it?

Works fine for me. What version are you using?

I was running 1.10, Sync mods fixed it.