C Board  

Go Back   C Board > General Programming Boards > C++ Programming

Reply
 
LinkBack Thread Tools Display Modes
Old 07-11-2009, 03:18 PM   #1
Trying to Learn C
 
nathanpc's Avatar
 
Join Date: Jul 2009
Location: Brazil
Posts: 32
Question Download Files

Hello,
How i can make a program that the user can download files, like wget that the user type this: wget http://www.testpage.com/file.pdf and the program download the file, i want this syntax, my program name and the site, then the user press enter and my program start the file download, please if you are going to post the code, please post the full code, because i'm starting in C++ development.

Thanks,
Nathan Paulino Campos
nathanpc is offline   Reply With Quote
Old 07-11-2009, 05:04 PM   #2
Registered User
 
Join Date: Sep 2004
Location: California
Posts: 2,845
Here is the complete code to do exactly what you are asking for.
bithub is offline   Reply With Quote
Old 07-11-2009, 07:08 PM   #3
Trying to Learn C
 
nathanpc's Avatar
 
Join Date: Jul 2009
Location: Brazil
Posts: 32
Lightbulb

Hello bithub,
Thanks because of the wget source code, but what i want is only the code of a very simple download program, because i'm starting in the C++ development, than i want to learn, and while i get better in C++, i improve the aplication, you understand.

Thanks,
Nathan Paulino Campos
nathanpc is offline   Reply With Quote
Old 07-11-2009, 07:58 PM   #4
Guest
 
Sebastiani's Avatar
 
Join Date: Aug 2001
Posts: 4,923
>> but what i want is only the code of a very simple download program

So you want someone to sit down and write you a sample file downloader? Give me a break. If you want to do it "by hand" look into sockets and the http spec. Otherwise, use an existing library/utility.
Sebastiani is offline   Reply With Quote
Old 07-11-2009, 08:02 PM   #5
Senior software engineer
 
brewbuck's Avatar
 
Join Date: Mar 2007
Location: Portland, OR
Posts: 5,381
Quote:
Originally Posted by nathanpc View Post
Hello bithub,
Thanks because of the wget source code, but what i want is only the code of a very simple download program, because i'm starting in the C++ development, than i want to learn, and while i get better in C++, i improve the aplication, you understand.

Thanks,
Nathan Paulino Campos
wget is not exactly a complex application. If you want a "very simple download program" then wget is exactly what you want.
__________________
"Congratulations on your purchase. To begin using your quantum computer, set the power switch to both off and on simultaneously." -- raftpeople@slashdot
brewbuck is offline   Reply With Quote
Old 07-11-2009, 08:02 PM   #6
Trying to Learn C
 
nathanpc's Avatar
 
Join Date: Jul 2009
Location: Brazil
Posts: 32
Hello Sebastiani,
Sorry, but i'm trying to learn C, i'm a VB developer and a litle bit in Java, but C is what i want to play with.
__________________
Eee PC 904HD White | Windows XP Home Edition | My Site

Google Talk: eeepc904@gmail.com
ICQ: 424738586

Add me and let's talk about C and C++!
nathanpc is offline   Reply With Quote
Old 07-11-2009, 08:06 PM   #7
and the Hat of Guessing
 
tabstop's Avatar
 
Join Date: Nov 2007
Posts: 8,740
Quote:
Originally Posted by nathanpc View Post
Hello Sebastiani,
Sorry, but i'm trying to learn C, i'm a VB developer and a litle bit in Java, but C is what i want to play with.
Except apparently you don't want to play with it, so much as have somebody else play with it and hand you the result?
tabstop is offline   Reply With Quote
Old 07-13-2009, 03:21 AM   #8
Registered User
 
Join Date: Apr 2007
Posts: 127
On Windows, just use Shell api (1 line of code) or COM or Net (10 lines)
Alex31 is offline   Reply With Quote
Reply

Tags
c++, cpp, download, file, io-file

Thread Tools
Display Modes

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Create Copies of Files Kanshu C++ Programming 13 05-09-2009 07:53 AM
Reading .dat files from a folder in current directory... porsche911nfs C++ Programming 7 04-04-2009 09:52 PM
Error opening files in a different dir Ozzie C++ Programming 3 10-09-2008 06:55 AM
Working with muliple source files Swarvy C++ Programming 1 10-02-2008 08:36 AM
IE 6 status bar DavidP Tech Board 15 10-23-2002 05:31 PM


All times are GMT -6. The time now is 10:48 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.0 RC2

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