#1
  1. Rut row Raggy!
    Devshed Novice (500 - 999 posts)

    Join Date
    Jul 2001
    Location
    Tornado Alley
    Posts
    560
    Rep Power
    31

    Question Getting a remote file (FTP)


    I've looked through a bunch of C++ books, but can't find anything that deals with FTP. I've seen countless tutorials on reading a local file, but how would you read a file from a website in C++?
    Matt
  2. #2
  3. /(bb|[^b]{2})/

    Join Date
    Nov 2001
    Location
    Somewhere in the great unknown
    Posts
    5,163
    Rep Power
    792
    The function to read a file through ftp under windows is [url=http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wininet/wininet/ftpgetfile.asp]ftpgetfile[/ur] which is part of the wininet dll.
    You can find the appropriate functions that are needed with it on the msdn website.

IMN logo majestic logo threadwatch logo seochat tools logo