Re: [ooc-compiler] File modes in module Files
Brought to you by:
mva
|
From: Michael v. A. <mic...@gm...> - 2005-10-17 05:51:42
|
On 17/10/05, August Karlstrom <fus...@co...> wrote:
> Hi,
>
> In the module Files, what values does the parameter `flags' in the
> procedures New, Old and Tmp accept?
read* =3D 0;
(* If the file cannot be opened for reading access, then it isn't opened
at all. In this case the error code is set to `noReadAccess'. *)
write* =3D 1;
(* If the file cannot be opened for writing access, then it isn't opened
at all. In this case the error code is set to `noWriteAccess'. *)
tryRead* =3D 2;
(* Try to open this file for reading access. If the file permissions
don't permit reading the file is opened nevertheless, but the file
descriptor's attribute `File.readable' is set to `FALSE'. *)
tryWrite* =3D 3;
(* Try to open this file for writing access. If the file permissions
don't permit writing the file is opened nevertheless, but the file
descriptor's attribute `File.writable' is set to `FALSE'. *)
-- mva
|