Loading a file from a webpage

This is a discussion on Loading a file from a webpage within the Windows Programming forums, part of the Platform Specific Boards category; Is there an easy way to load a text file from a website addy to display in an edit box. ...

  1. #1
    Registered User
    Join Date
    Oct 2001
    Posts
    81

    Loading a file from a webpage

    Is there an easy way to load a text file from a website addy to display in an edit box. like loading http://www.nowhere.com/test.txt

  2. #2
    Registered User
    Join Date
    Jun 2002
    Posts
    14
    Using the urlmon library will allow you to use this function:
    Code:
    URLDownloadToFile(NULL, "http://www.nowhere.com/file.txt","file.txt", 0, NULL);
    Which is probably the easiest way to get a file of the web. Have a look at the source code here which does what you want to do.

  3. #3
    Registered User
    Join Date
    Oct 2001
    Posts
    81
    I don't have that library or header file and their not in the zip file where do i get them from

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. gcc link external library
    By spank in forum C Programming
    Replies: 6
    Last Post: 08-08-2007, 03:44 PM
  2. C++ std routines
    By siavoshkc in forum C++ Programming
    Replies: 33
    Last Post: 07-28-2006, 12:13 AM
  3. Replies: 3
    Last Post: 03-04-2005, 01:46 PM
  4. Unknown Memory Leak in Init() Function
    By CodeHacker in forum Windows Programming
    Replies: 3
    Last Post: 07-09-2004, 09:54 AM
  5. archive format
    By Nor in forum A Brief History of Cprogramming.com
    Replies: 0
    Last Post: 08-05-2003, 07:01 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21