DocAda(tm) is a productivity tool of KSCE

Prev | Up | Next | Back | Forward
About DocAda Light: Preface / Preliminary / Help / TOC / Copyright
DocAda Online at the Ada Home: Complete RM95 / Updates / News

A.10.3 Default Input, Output, and Error Files

Static Semantics

The following subprograms provide for the control of the particular default files that are used when a file parameter is omitted from a Get, Put, or other operation of text input-output described below, or when application-dependent error-related text is to be output.

   
       procedure Set_Input(File : in File_Type);
   
       procedure Set_Output(File : in File_Type);
       procedure Set_Error (File : in File_Type);
   
       function Standard_Input return File_Type;
       function Standard_Input return File_Access;
   
       function Standard_Output return File_Type;
       function Standard_Output return File_Access;
    
       function Standard_Error return File_Type;
       function Standard_Error return File_Access;
    
       function Current_Input return File_Type;
       function Current_Input return File_Access;
    
       function Current_Output return File_Type;
       function Current_Output return File_Access;
    
       function Current_Error return File_Type;
       function Current_Error return File_Access;
    
       procedure Flush (File : in out File_Type);
       procedure Flush;

Erroneous Execution

The execution of a program is erroneous if it attempts to use a current default input, default output, or default error file that no longer exists.

If the Close operation is applied to a file object that is also serving as the default input, default output, or default error file, then subsequent operations on such a default file are erroneous.

About DocAda Light: Preface / Preliminary / Help / TOC / Copyright
DocAda Online at the Ada Home: Complete RM95 / Updates / News
Prev | Up | Next | Back | Forward


Copyright © 1994-1997 by Kempe Software Capital Enterprises. All Rights Reserved. For comments on this DocAda(tm) hypertext document, please write to KSCE, at docada@ksce.com