[REBOL] [REBOL] Updating a file as a port Re:(3)

2000-01-26 Thread icimjs
Hi Jim, >Hi Elan, > >Gee, you really just need to open the file with /lines. The default is read >and write. ;-) > you may want to hint at that in the info returned by help open ;-) >> help open Opens a new port connection. Arguments: spec -- (file url port object block) Refinements:

[REBOL] [REBOL] Updating a file as a port Re:(3)

2000-01-26 Thread icimjs
Hi Jim, oops, guess I haven't quite outgrown C myself. At 03:32 PM 1/26/00 -0800, you wrote: >At 02:17 PM 1/26/00 -0800, you wrote: >>The /write refinement disables read operations! >> >> >>Solution: >> >>Use the /mode refinement with a block [lines read write] like this: > >Hi Elan, > >Gee, you

[REBOL] [REBOL] Updating a file as a port Re:(2)

2000-01-26 Thread jimg
At 02:17 PM 1/26/00 -0800, you wrote: >The /write refinement disables read operations! > > >Solution: > >Use the /mode refinement with a block [lines read write] like this: Hi Elan, Gee, you really just need to open the file with /lines. The default is read and write. ;-) - jim

[REBOL] [REBOL] Updating a file as a port Re:

2000-01-26 Thread icimjs
Hi Tim, 1. Your code causes an error, before it completes executing: >> fp: open/lines/write %test.txt >> forall fp ** Script Error: forall expected body argument of type: block. ** Where: forall fp 2. help open states that: >> help open Opens a new port connection. Arguments: spec -- (f