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.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,c1da643bcd91f37b X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!news4.google.com!news.glorb.com!npeer.de.kpn-eurorings.net!feed.news.schlund.de!schlund.de!news.online.de!not-for-mail From: Michael Paus Newsgroups: comp.lang.ada Subject: Re: Advice on low level file handling. Date: Thu, 06 Apr 2006 09:43:44 +0200 Organization: 1&1 Internet AG Message-ID: References: NNTP-Posting-Host: p50812237.dip0.t-ipconnect.de Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: online.de 1144309424 5883 80.129.34.55 (6 Apr 2006 07:43:44 GMT) X-Complaints-To: abuse@einsundeins.com NNTP-Posting-Date: Thu, 6 Apr 2006 07:43:44 +0000 (UTC) User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.12) Gecko/20050915 X-Accept-Language: en-us, en In-Reply-To: Xref: g2news1.google.com comp.lang.ada:3735 Date: 2006-04-06T09:43:44+02:00 List-Id: Peter C. Chapin wrote: > "Randy Brukardt" wrote in > news:R_adnVLVrp7jUazZRVn-rw@megapath.net: > On the other hand, it might make sense to define a suitable record type > that has the necessary fields already specified in the right places and > then just read a chunk of the file into such a record. However, part of > the file needs to be uninterpreted data---it's not a file of records--- > so this approach may not work out well either. That's exactly what Stream_IO is made for. The big advantage of Stream_IO is that you can read mixed types from a single stream. So you can read pre-defined record types and uninterpreted data (bytes) just as you like. Michael