Reading text from the internet.

BlitzPlus Forums/BlitzPlus Programming/Reading text from the internet.

Davo(Posted 2004) [#1]
Im trying to create an application that, ideally, would check a simple text file from my webserver.

Now comes my problem.

So far, I havent been able to make it look up this text file. The program always returns with a bad stream handle. Is my method actually possible?

Any help would be great. Thanks.


soja(Posted 2004) [#2]
You could use InternetOpen, InternetOpenURL, InternetReadFile and InternetCloseHandle. Look them up on MSDN. They're defined in wininet.dll. If you need help, I've done something like that before.


dan_upright(Posted 2004) [#3]
you should be able to do it by adapting this:
http://www.blitzbasic.com/codearcs/codearcs.php?code=24


Davo(Posted 2004) [#4]
Cheers, both of you.


Davo(Posted 2004) [#5]
If you dont mind, could I have a small example of how to call a *.dll file and then use it? Ive never tried this method before so im a little lost.

Thanks.


Eikon(Posted 2004) [#6]
Hi Davo, check this:

http://www.blitzbasic.com/sdkspecs/sdkspecs/userlibs_specs.txt