-
Download
Is there a way I can download a file from the internet and either parse it in the code immediately or save it to file to open and read later? I'd like this without MFC and either two versions, linux compatible and windows or one that works with both. Thanks a lot!
-
check msdn for
URLDownloadToFile();
you'll need to add urlmon.lib to your project for it to work. :cool:
-
-
-
In Linux you can just use fopen() like any other file though right?
-
It doesn't work in Linux of course, unless you use WINE.
And you can't use fopen either.
If you're really looking for a platform independent solution without any third party libraries sockets are the way to go, they work nearly identically for windows and UNIX. You only need a few #ifdefs.
But a better idea would be to search Google for some platform independent FTP/HTTP library.