[REBOL] Re: SAVE each elements to a new line
From: al:bri:xtra at: 10-Aug-2002 21:59
Phil asked:
> Is it possible to save each elements to a new line ?
Yes. Here's how:
>> write %Holiday.txt {[1 23/Sep/2002] ; First the original file...
{ [2 12/Aug/2002]}
>> x: load %Holiday.txt
== [[1 23-Sep-2002]
[2 12-Aug-2002]
]
>> append x [ ; note the extra square bracket and lack of /only
refinement.
[ [3 25/Dec/2002]]
== [[1 23-Sep-2002]
[2 12-Aug-2002]
[3 25-Dec-2002]
]
>> save %Holiday.txt x
>> print read %Holiday.txt
[1 23-Sep-2002]
[2 12-Aug-2002]
[3 25-Dec-2002]
Ta dah! :)
Andrew Martin
Rebolutionary in full dress uniform...
ICQ: 26227169 http://valley.150m.com/