comp.lang.ada
 help / color / mirror / Atom feed
From: Kilgallen@eisner.decus.org.nospam (Larry Kilgallen)
Subject: Re: Reading variable-length records from a file
Date: 13 Aug 2001 13:51:28 -0500
Date: 2001-08-13T13:51:28-05:00	[thread overview]
Message-ID: <Y5c62Jbeng+j@eisner.encompasserve.org> (raw)
In-Reply-To: 9l93cp$bbf$1@slb7.atl.mindspring.net

In article <9l93cp$bbf$1@slb7.atl.mindspring.net>, "Brian Catlin" <briancatlin@mindspring.com> 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.



  parent reply	other threads:[~2001-08-13 18:51 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-08-10 18:37 Reading variable-length records from a file Brian Catlin
2001-08-10 19:04 ` Larry Kilgallen
2001-08-10 21:28 ` Mark Johnson
2001-08-13  8:14 ` Thierry Lelegard
2001-08-13 17:39   ` Brian Catlin
2001-08-13 18:29     ` tmoran
2001-08-13 18:51     ` Larry Kilgallen [this message]
  -- strict thread matches above, loose matches on Subject: below --
2001-08-13 21:29 Gautier Write-only-address
2001-08-13 22:41 ` Larry Kilgallen
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox