CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Jul 2001
    Location
    Canada
    Posts
    2

    Input Text file from web

    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

  2. #2
    Join Date
    Mar 2001
    Location
    California
    Posts
    336

    Re: Input Text file from web

    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured