ftp_download list

Posted By: Tonyjack221

ftp_download list - 02/05/13 11:55

i have a many files want to downloads from the ftp server the name of the files in a text "names.txt" my problem is how can i downloads the files line by line
the text file like this :
D:/Nouveau dossier/gun.mdl
D:/Nouveau dossier/ff.mdl
D:/Nouveau dossier/gg.mdl
D:/Nouveau dossier/hh.mdl
D:/Nouveau dossier/ee.mdl
D:/Nouveau dossier/qqq.mdl
Posted By: Uhrwerk

Re: ftp_download list - 02/05/13 15:22

You cannot use ftp_ instructions with the free version.
Posted By: Tonyjack221

Re: ftp_download list - 02/05/13 16:31

i have pro version A8
!!!
Posted By: Uhrwerk

Re: ftp_download list - 02/05/13 16:43

Your user profile says it is the free version. That's why I mentioned it.

I'd then suggest loading the text file to a temporary file. Then you can create text object with txt_create and load the file with the list with txt_load or txt_loadw. Finally you can iterate over the text's string and download each individual file.

http://www.conitec.net/beta/atxt_load.htm

The iteration pretty much works like this:
Code:
int i;
for (i = 0; i < t->strings; i++)
{
   STRING* url =(t->pstring)[i];
   // Now download from url...
}

Posted By: Ch40zzC0d3r

Re: ftp_download list - 02/05/13 16:44

Hm why do you have pro version if you cant do such simple things?
*Smells like a crack*
© 2024 lite-C Forums