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=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,a63bfa12efaa021 X-Google-Attributes: gid103376,public From: dewar@cs.nyu.edu (Robert Dewar) Subject: Re: Reading sequential data from Ada.Text_Io.Standard_Input? Date: 1996/07/09 Message-ID: #1/1 X-Deja-AN: 167993542 references: <4rsibv$2mo@ia.mks.com> organization: Courant Institute of Mathematical Sciences newsgroups: comp.lang.ada Date: 1996-07-09T00:00:00+00:00 List-Id: David asks how to read raw data from standard input. The answer is to use Stream_IO, it's all setup for that. You could also create an appropriate sequential_io descriptor, have a look at package package Ada.Sequential_IO.C_Streams is in file s-siocst.ads, which permits opening a sequent file given a C stream identifier (there are analogous packages for all the I/O packages in GNAT). You certainly cannot expect success following the line you were trying. File types are completely different for different I/O packages, and here there is no reason to think you could convert one to another. GNAT does not "know what you want to do", as far as it is concerned you are trying a totally junk type conversion from one type to a completely unrelated type that makes no sense at all.