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,f46e9f8b0c4ee5c0 X-Google-Attributes: gid103376,public From: John McCabe Subject: Re: Binary Files in Text Editor Date: 1998/11/13 Message-ID: <72gv55$npp@gcsin3.geccs.gecm.com>#1/1 X-Deja-AN: 411403997 Content-Transfer-Encoding: 7bit References: <72aiik$c1u$1@nnrp1.dejanews.com> <72ct6o$abi$1@nnrp1.dejanews.com> <72e9el$top@gcsin3.geccs.gecm.com> <72f0os$23v$1@nnrp1.dejanews.com> Content-Type: text/plain; charset=us-ascii Organization: Avatar Computer Consultants Limited Mime-Version: 1.0 Newsgroups: comp.lang.ada Date: 1998-11-13T00:00:00+00:00 List-Id: robinsoj@my-dejanews.com wrote: >I have an array of records (there are two string fields, an integer >field, and a float field) that I converted from a text file to a binary >file. Now I want to display those records to the screen like a list. If they're in a binary file then you need to use something like Sequential_IO or Direct_IO to retrieve them. Presumably the records are fixed length. If you want to see the interpreted contents of the record on the screen then just use Ada.Text_IO, Ada.Integer_Text_IO and Ada.Float_Text_IO to output the fields individually. If you want to see the records as a series of bytes on the screen, then you'll have to convert them individually into a representation that can be displayed. I'm not sure that this answers your question though. If it doesn't can you give us an example of what you'd like to see? -- Best Regards John McCabe --------------------------------------------------------------------- Marconi Electronic Systems Simulation & Training Division ===================================================================== Not necessarily my company or service providers opinions. =====================================================================