Monday, May 24, 2010

C++ Programming: How to dowload a file from a URL on the internet?

For example:





Say there was a file: www.testpage.com/file.txt


And I wanted to download "file.txt" to my computer.





What classe(s) and lines of code do I use?





Or better yet, do you know of an online tutorial that can explain this to me in detail?





Thanks

C++ Programming: How to dowload a file from a URL on the internet?
I don't think this answer is quite what you want, but it might be helpful any way.





If you are using osX Linux or Unix you can use curl.





i.e., curl www.testpage.com/file.txt %26gt; filename


No comments:

Post a Comment