Re: File_Type
tmoran_at_acm.org
Date: 04/18/04
- Next message: Georg Bauhaus: "Re: Unified Ada library"
- Previous message: Jano: "Re: Unified Ada library"
- In reply to: Jorge Suarez-Solis Rivaya: "File_Type"
- Next in thread: sk: "Re: File_Type"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sun, 18 Apr 2004 20:47:03 GMT
>Is there anyway to use an Integer Type like a File_Type?,
>Is there anyway to asign a File_Type the value 3?
Perhaps you want an array
File_List : array(1 .. 10) of File_Type;
...
Open(File_List(3), ...
Or perhaps you are thinking of some systems' (eg DOS) small integer
file handles - 0=stdin, 1=stdout, 2=stderr, 3=aux, 4=prn? Ada.Text_IO
has routines to convert the first three to File_Type:
function Standard_Input return File_Type;
function Standard_Output return File_Type;
function Standard_Error return File_Type;
- Next message: Georg Bauhaus: "Re: Unified Ada library"
- Previous message: Jano: "Re: Unified Ada library"
- In reply to: Jorge Suarez-Solis Rivaya: "File_Type"
- Next in thread: sk: "Re: File_Type"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|