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,XPRIO autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,ccc96dfdd6a003a7,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-08-10 11:37:44 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed1.cidera.com!Cidera!cyclone2.usenetserver.com!usenetserver.com!newsfeed2.earthlink.net!newsfeed.earthlink.net!news.mindspring.net!not-for-mail From: "Brian Catlin" Newsgroups: comp.lang.ada Subject: Reading variable-length records from a file Date: Fri, 10 Aug 2001 11:37:23 -0700 Organization: Sannas Consulting Message-ID: <9l19l4$45m$1@slb7.atl.mindspring.net> NNTP-Posting-Host: a5.f7.f4.b7 X-Server-Date: 10 Aug 2001 18:37:24 GMT X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2919.6700 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Xref: archiver1.google.com comp.lang.ada:11778 Date: 2001-08-10T18:37:24+00:00 List-Id: 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). -Brian