Prev | Up | Next | Back | Forward
TOC -- / --.-- / --.--.-- | Index | Search | Syntax | Help


A.8.2 File Management

Static Semantics
(1)
The procedures and functions described in this subclause provide for the control of external files; their declarations are repeated in each of the packages for sequential, direct, text, and stream input-output. For text input-output, the procedures Create, Open, and Reset have additional effects described in subclause A.10.2.
(2)
       procedure Create(File : in out File_Type;
                        Mode : in File_Mode := default_mode;
                        Name : in String := "";
                        Form : in String := "");
(3)
(4)
(5)
(6)
       procedure Open(File : in out File_Type;
                      Mode : in File_Mode;
                      Name : in String;
                      Form : in String := "");
(7)
(8)
(9)
       procedure Close(File : in out File_Type);
(10)
(11)
(12)
       procedure Delete(File : in out File_Type);
(13)
(14)
(15)
       procedure Reset(File : in out File_Type; Mode : in File_Mode);
       procedure Reset(File : in out File_Type);
(16)
(17)
(18)
       function Mode(File : in File_Type) return File_Mode;
(19)
(20)
(21)
       function Name(File : in File_Type) return String;
(22)
(23)
(24)
       function Form(File : in File_Type) return String;
(25)
(26)
(27)
       function Is_Open(File : in File_Type) return Boolean;
(28)
Implementation Permissions
(29)
An implementation may propagate Name_Error or Use_Error if an attempt is made to use an I/O feature that cannot be supported by the implementation due to limitations in the external environment. Any such restriction should be documented.

Prev | Up | Next | Back | Forward
TOC -- / --.-- / --.--.-- | Index | Search | Syntax | Help

Ada WWW Home -- Email comments, additions, corrections, gripes, kudos, etc. to:

Magnus Kempe -- Magnus.Kempe@di.epfl.ch
Copyright statement
Page last generated: 95-03-12