[REBOL] Changing a data in a file using open+change+close does no t work?
From: micael::gullmes::telenordia::se at: 31-Mar-2002 20:57
Hi all,
'close' does not always behave according to the rebolcore docs:
Access to a port is terminated with the close function. All buffered data
that has not been saved will be written to the target file.
When I change data in a file and close it, the changes are not written to
the file.
Here is an example that does not work the way I want:
>> write %test1.txt "This is a test"
>> a: open/lines %test1.txt
>> first a
== "This is a test"
>> change first a "Is this"
== " a test"
>> first a
== "Is this a test"
>> close a
>> print read %test1.txt
This is a test
Does anyone have any hints?
Brgds/Micael