From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, MAILING_LIST_MULTI autolearn=unavailable autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,8180bee0588d30e X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-10-14 09:52:59 PST Path: archiver1.google.com!news2.google.com!news.maxwell.syr.edu!skynet.be!skynet.be!freenix!enst.fr!melchior!cuivre.fr.eu.org!melchior.frmug.org!not-for-mail From: Marius Amado Alves Newsgroups: comp.lang.ada Subject: Re: SEQUENTIA_IO and stdin/stdout (Standard_Input, Standard_Output) Date: Tue, 14 Oct 2003 16:45:39 +0000 Organization: Cuivre, Argent, Or Message-ID: References: <55cccaab.0310140444.4ac20d7f@posting.google.com> NNTP-Posting-Host: lovelace.ada-france.org Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Trace: melchior.cuivre.fr.eu.org 1066149977 39969 80.67.180.195 (14 Oct 2003 16:46:17 GMT) X-Complaints-To: usenet@melchior.cuivre.fr.eu.org NNTP-Posting-Date: Tue, 14 Oct 2003 16:46:17 +0000 (UTC) To: comp.lang.ada@ada-france.org Return-Path: In-Reply-To: X-Mailer: Ximian Evolution 1.4.5 X-OriginalArrivalTime: 14 Oct 2003 16:39:50.0481 (UTC) FILETIME=[C96CB410:01C39271] X-Virus-Scanned: by amavisd-new-20030616-p5 (Debian) at ada-france.org X-BeenThere: comp.lang.ada@ada-france.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Gateway to the comp.lang.ada Usenet newsgroup List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Xref: archiver1.google.com comp.lang.ada:841 Date: 2003-10-14T16:45:39+00:00 On Tue, 2003-10-14 at 14:29, Larry Kilgallen wrote: > > I came from C world and brought the question: how I can open stdin or > > stdout as a SEQUENTIAL file? > > Parameterless function Text_IO.Standard_Input returns a value of File_Type. > > Function Text_IO.Name takes a value of File_Type as a parameter and returns > the name of the corresponding file. Are you suggesting the trick of finding out the name of Standard_Output (say) and then open a sequential file with that name? Sounds clever, but unfortunately it doesn't work. See my previous reply (actually a forward) for a 'proper' solution to this problem.