Gamestudio Links
Zorro Links
Newest Posts
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (AndrewAMD), 1,014 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
ftp_download list #416844
02/05/13 11:55
02/05/13 11:55
Joined: Jun 2011
Posts: 75
algeria
T
Tonyjack221 Offline OP
Junior Member
Tonyjack221  Offline OP
Junior Member
T

Joined: Jun 2011
Posts: 75
algeria
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

Re: ftp_download list [Re: Tonyjack221] #416874
02/05/13 15:22
02/05/13 15:22
Joined: Jan 2002
Posts: 4,225
Germany / Essen
Uhrwerk Offline
Expert
Uhrwerk  Offline
Expert

Joined: Jan 2002
Posts: 4,225
Germany / Essen
You cannot use ftp_ instructions with the free version.


Always learn from history, to be sure you make the same mistakes again...
Re: ftp_download list [Re: Uhrwerk] #416884
02/05/13 16:31
02/05/13 16:31
Joined: Jun 2011
Posts: 75
algeria
T
Tonyjack221 Offline OP
Junior Member
Tonyjack221  Offline OP
Junior Member
T

Joined: Jun 2011
Posts: 75
algeria
i have pro version A8
!!!

Re: ftp_download list [Re: Tonyjack221] #416885
02/05/13 16:43
02/05/13 16:43
Joined: Jan 2002
Posts: 4,225
Germany / Essen
Uhrwerk Offline
Expert
Uhrwerk  Offline
Expert

Joined: Jan 2002
Posts: 4,225
Germany / Essen
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...
}



Always learn from history, to be sure you make the same mistakes again...
Re: ftp_download list [Re: Uhrwerk] #416886
02/05/13 16:44
02/05/13 16:44
Joined: Oct 2011
Posts: 1,082
Germany
C
Ch40zzC0d3r Offline
Serious User
Ch40zzC0d3r  Offline
Serious User
C

Joined: Oct 2011
Posts: 1,082
Germany
Hm why do you have pro version if you cant do such simple things?
*Smells like a crack*


Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1