Reading text from the internet.
BlitzPlus Forums/BlitzPlus Programming/Reading text from the internet.
| ||
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. |
| ||
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. |
| ||
you should be able to do it by adapting this: http://www.blitzbasic.com/codearcs/codearcs.php?code=24 |
| ||
Cheers, both of you. |
| ||
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. |
| ||
Hi Davo, check this: http://www.blitzbasic.com/sdkspecs/sdkspecs/userlibs_specs.txt |