No, try opening /read. /new will truncate the file if it exists. That's the 
difference.

  - jim

At 05:55 AM 4/14/2000, you wrote:


>[EMAIL PROTECTED] wrote:
>
> > Hi Petr,
> >
> > Open opens for reading and writing by default. When a program is executing,
> > there is a handle open to it for loading resources/overlays. So, if you try
> > to open it for write, it fails. However, you can open it for reading only
> > by using open/read. Hope this clears it up for you!
>
>Aha, so before trying to open possibly non existant file I have to check it's
>existence by 'exists?, right? Well, what's /new refinement good for then?
>
>-pekr-
>
> >
> >
> >   - jim
> >
> > At 05:27 AM 4/14/2000, you wrote:
> > >Hi,
> > >
> > >my friend wanted me to write some small script and I am having some
> > >troubles with 'open function
> > >
> > >1)
> > >->> my-file: open %/G/non-existant-file.exe
> > >->> insert my-file "ahoy"
> > >->> close my-file
> > >
> > >How's that open opens new file without usage of /new refinement?
> > >
> > >2) I have rebol.exe on some path and once my loop get's to rebol.exe, it
> > >fails:
> > >
> > >->> ble: open %/G/Work/REBOL/REBOL.exe
> > >** Access Error: Cannot open /G/Work/REBOL/REBOL.exe.
> > >** Where: ble: open %/G/Work/REBOL/REBOL.exe
> > >
> > >I looked at serve console and noone has REBOL.exe on above path opened
> > >(as noone except my office folks has access to it). Is it some special
> > >case rebol refuses open it's own executable? :-)
> > >
> > >Well, maybe I am just missing something ....
> > >
> > >btw: I hope open/exclusive will come in some of future REBOL versions
> > >...
> > >
> > >-pekr-


Reply via email to