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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,ccc96dfdd6a003a7 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-08-13 11:51:34 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: 13 Aug 2001 13:51:28 -0500 Organization: LJK Software Message-ID: References: <9l19l4$45m$1@slb7.atl.mindspring.net> <3B778C6E.9B43450D@canal-plus.fr> <9l93cp$bbf$1@slb7.atl.mindspring.net> NNTP-Posting-Host: eisner.encompasserve.org X-Trace: grandcanyon.binc.net 997728132 23942 192.135.80.34 (13 Aug 2001 18:42:12 GMT) X-Complaints-To: abuse@binc.net NNTP-Posting-Date: Mon, 13 Aug 2001 18:42:12 +0000 (UTC) Xref: archiver1.google.com comp.lang.ada:11863 Date: 2001-08-13T13:51:28-05:00 List-Id: In article <9l93cp$bbf$1@slb7.atl.mindspring.net>, "Brian Catlin" writes: > Unfortunately, the files were ZIPped up and sent to me; I don't have a VMS system to perform the conversion. Therefore, I want to Does ZIP have a notion of text files ? It sounds like they were ZIPped as binary. > write an Ada program to convert the files for me. I could have written a C program to do this in the time it took for me to write > the original post, but I want to "get both lobes around the Ada paradigm", and do it in Ada. So far, the only suggestion on > actually doing the conversion in Ada was to read two characters, multiply the first by 256, add them together, and then read that > number of characters from the file. GROSS! There has to be a better way! Plus one if needed to make it an even number.