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

[REBOL] Implicit renaming

From: richard::coffre::francetelecom::com at: 15-Apr-2002 10:27

Hi Rebol fellows, Why with the following code : REBOL [] file: to-file ask "Filename? " texte: read/lines file output1: copy head change find/last file "." ".loc" output2: copy head change find/last file "." ".lst" print ["le fichier trait=E9 est '" file "'."] print ["le fichier '" output1 "' a =E9t=E9 cr=E9=E9."] print ["le fichier '" output2 "' a =E9t=E9 cr=E9=E9."] I have the result below where the variable "file" has changed its valuee !!!!
>> do %flash/testfile.r
Script: "Untitled" (none) Filename? generic4.txt le fichier trait=E9 est ' generic4.lst '. le fichier ' generic4.loc ' a =E9t=E9 cr=E9=E9. le fichier ' generic4.lst ' a =E9t=E9 cr=E9=E9. What can I do to avoid this ? TIA Richard Coffre France Telecom Orbiscom T=E9l. : 01 47 61 46 28