Click to See Complete Forum and Search --> : Input Text file from web


Juicepig
July 17th, 2001, 03:19 PM
I have a text file on the web (single character, either 1 or 0). I want my program to check this file and perform a function determined by the value of this file.

Can anyone help me get my program to recognize a file on the web?

Thanx!

JP

pellybelly
July 30th, 2001, 04:43 AM
Try looking up and using the WinInet (Windows Internet) commands. They are an easy way to integrate HTTP and FTP actions into your application (in your case, reading a file).

For your particular situation, the functions InternetOpenUrl() and InternetReadFile() seem the most useful.

Good luck!

John Peloquin
Peloweb.com
john@peloweb.com

"Always remember to lock your keys in your car so little elves don't come and steal them out of your pocket" - Alexander Graham Bell