How to download from a list of links - Need help c/c++

Discussion in 'Programming' started by CodeBeast, Oct 20, 2011.

  1. #1
    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!
    In c++ it should be somthing like that:
    #include <windows.h>
    
    
    void main()
    {
       ShellExecute(NULL, "open", "http://URL.com",
                    NULL, NULL, SW_SHOWNORMAL);
    }
    
    Code (markup):

    where I have to replace the URL.com with the file name..but I'm realy SUPER confused about this,because its unknown function and have no idea how exacly to moderate it...
    Can someone help me? in C or C++ both are ok.

    THANKS in advance!
     
    CodeBeast, Oct 20, 2011 IP