Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: hlep

From: gjones05:mail:orion at: 18-Jun-2001 8:42

From: "Elisabeth FRANCOIS"
> PLEASE HELP ME !!! > > I use this to save file on local : > > A: rejoin [nom/text "-filtres.txt"] > write to-file A texte > > and it works! > But when I want to do it on a ftp-sever, I do this : > > B: join ["ftp://login:[pass--ftp--ftpserver--com]/directory/" nom/text > "-filtres.txt"] > write B texte > > and it does not work ! > > also I'm giving the same name to all files and it works : > write ftp://login:[pass--ftp--ftpserver--com]/directory/filtres.txt texte > > But I need to change the name of the file each time, with nom/text. > > Thank you for you help !
Hi, Elisabeth, I assume that when you issue the command: B: join ["ftp://login:[pass--ftp--ftpserver--com]/directory/" nom/text -filtres.txt ] that you get the error: ** Script Error: join is missing its rest argument 'Join accepts two values to be joined, like: join "Elisabeth " "FRANCOIS" ; == "Elisabeth FRANCOIS" or a: "Elisabeth " ; == "Elisabeth " b: "FRANCOIS" ; == "FRANCOIS" join a b ; == "Elisabeth FRANCOIS" but it appears that you wish to pass a block of values, some of which need to be reduced (meaning, evaluated). The command that you may need is 'rejoin, which accepts a block, reduces the values and joins the resulting values. Try: B: rejoin ["ftp://login:[pass--ftp--ftpserver--com]/directory/" nom/text -filtres.txt ] write B texte Hope that helps. --Scott Jones