[REBOL] Re: Evaluation and writing in a file
From: richard:coffre:francetelecom at: 17-Apr-2002 10:35
Ok Tom,
I'll try once again
-----Message d'origine-----
De : Tom Conlin [mailto:[tomc--darkwing--uoregon--edu]]
Envoy=E9 : mardi 16 avril 2002 19:21
=C0 : [rebol-list--rebol--com]
Objet : [REBOL] Re: Evaluation and writing in a file
rejoin does work
>> lines: {line1 line2 line3 line4 line5}
== "line1 line2 line3 line4 line5"
>> count: 0
== 0
>> output: %out.dat
== %out.dat
>> write output ""
>> foreach line parse lines none [
[ write/append/lines output rejoin[ count: count + 1 " - " line ]
[ ]
>> print read %out.dat
1 - line1
2 - line2
3 - line3
4 - line4
5 - line5
On Tue, 16 Apr 2002, COFFRE Richard FTO wrote: