Some help required with streams and banks please

Blitz3D Forums/Blitz3D Beginners Area/Some help required with streams and banks please

_PJ_(Posted 2009) [#1]
My aim is to read the data from text files stored in a precise location on the web.

The information in the files is very simply stored as strings.

I have tried using the code from here: http://www.blitzbasic.com/codearcs/codearcs.php?code=1816
but I keep getting errors, even when using the default example.

It also appears somewhat over complicated for what I am trying to do.

In essence, all I really need is something that can do the following:

Function WebFileHandle%=OpenWebFile$(PathURL$,Filename$)

Function ReadWebInt%(WebFileHandle%)

Function ReadWebString%(WebFileHandle%)

Function ReadWebFloat#(WebFileHandle%)

I understand how carriage returns would need to be checked for, as these take up bytes in the stream being read, but I am very rusty on the whole Peek idea with Short/Long bytes etc.


AJ00200(Posted 2009) [#2]
Your going to need to use the TCP streams
tcp=openTCPstream("www.blitzbasic.com",80)
writeline tcp,"GET http:// the url HTTP/1.0
...



_PJ_(Posted 2009) [#3]
Yes, but how?


jfk EO-11110(Posted 2009) [#4]
Isn't there an example in the code archives that shows how to download an image to a bank? A textfile would be the same. As far as I remember it's one of the oldest samples in the archives.


_PJ_(Posted 2009) [#5]
That's the link in my first post I think, jfk. It was way opvercomplicated for what I need, and I wasn't too sure what to snip out from it.