Package: GNAT.IO_Aux

Dependencies

with Ada.Text_IO;

Description

This package provides some auxiliary functions for use with Text_IO, including a test for an existing file, and a Get_Line function which returns a string.

Header

package GNAT.IO_Aux is
 

Other Items:

function File_Exists (Name : String) return Boolean;
Test for existence of a file named Name

function Get_Line return String;
Read Ada.Text_IO.Current_Input and return string that includes all characters from the current character up to the end of the line, with no limit on its length. Raises Ada.IO_Exceptions.End_Error if at end of file.

function Get_Line (File : Ada.Text_IO.File_Type) return String;
Same, but reads from specified file
end GNAT.IO_Aux;