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
Printable View
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
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
[email protected]
"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