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,LOTS_OF_MONEY autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,ccc96dfdd6a003a7 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-08-10 12:04:57 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!cpk-news-hub1.bbnplanet.com!chcgil2-snf1.gtei.net!news.gtei.net!news.binc.net!kilgallen From: Kilgallen@eisner.decus.org.nospam (Larry Kilgallen) Newsgroups: comp.lang.ada Subject: Re: Reading variable-length records from a file Date: 10 Aug 2001 14:04:52 -0500 Organization: LJK Software Message-ID: References: <9l19l4$45m$1@slb7.atl.mindspring.net> NNTP-Posting-Host: eisner.encompasserve.org X-Trace: grandcanyon.binc.net 997469787 16810 192.135.80.34 (10 Aug 2001 18:56:27 GMT) X-Complaints-To: abuse@binc.net NNTP-Posting-Date: Fri, 10 Aug 2001 18:56:27 +0000 (UTC) Xref: archiver1.google.com comp.lang.ada:11779 Date: 2001-08-10T14:04:52-05:00 List-Id: In article <9l19l4$45m$1@slb7.atl.mindspring.net>, "Brian Catlin" writes: > What is the best method for reading variable-length records from a file, using Ada (generic Ada, or GNAT)? I have some files, from > a VMS system, that I want to read on a Win2K system. The files have the VMS standard "implied carriage control", which means that > each "record" (or line; it's a text file) has a two-byte count value, followed by "count" bytes (characters). And a fill byte if needed to even the count.