CodeBeast
10-20-2011, 10:41 AM
Hello guys... I'm really new in C coding and I need help
I'm working on a school project.I have to put downloadable urls into a txt file and then the program have to read the file and download them.Since we never talked about this in my school,I really can't know how to do this...
I need just the part of the code wich is reading the file and downloading the stuff(if possible)
Any help is precious for me!
THANKS in advance!
bobleny
10-20-2011, 06:41 PM
You need to look into fopen, and cURL. You might be able to use fopen to download the urls, but I doubt it.
CodeBeast
10-20-2011, 09:44 PM
You need to look into fopen, and cURL. You might be able to use fopen to download the urls, but I doubt it.
Maybe I can create a pointer and make it pointing at the 1st url in the txt file,after that i can use "system("start POINTER");" and after every loop the pointer will ++ until the eof...
hmm...I have to try it when I go home,this may work :)
bobleny
10-21-2011, 01:11 AM
Well, I suppose you could try that, or you could just use fread or fgets to read the file...
Check out this site:
http://www.cplusplus.com/reference/
This applies more to what you are trying to do:
http://www.cplusplus.com/reference/clibrary/cstdio/
jack14
10-21-2011, 09:27 AM
thank you so much for your nice explanation about how to do download the bunch of links !
thank you once again
human milk banking (http://www.mothersbreastmilk.com)
CodeBeast
10-21-2011, 01:26 PM
well, i suppose you could try that, or you could just use fread or fgets to read the file...
Check out this site:
http://www.cplusplus.com/reference/
this applies more to what you are trying to do:
http://www.cplusplus.com/reference/clibrary/cstdio/
thank you!!!!