comp.lang.ada
 help / color / mirror / Atom feed
From: tmoran@acm.org
Subject: Re: Reading variable-length records from a file
Date: Mon, 13 Aug 2001 18:29:47 GMT
Date: 2001-08-13T18:29:47+00:00	[thread overview]
Message-ID: <v0Vd7.60309$Kd7.34337089@news1.rdc1.sfba.home.com> (raw)
In-Reply-To: 9l93cp$bbf$1@slb7.atl.mindspring.net

> Unfortunately, the files were ZIPped up and sent to me;
  Do you mean with pkzip?  If so, I'd expect pkzip options to convert.

> 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,
> ...
> 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!
  For those of us too dense to see the better way, could you please
show (the important parts of) the C code you would use?  Perhaps there's
a clever trick that could also be used in Ada.



  reply	other threads:[~2001-08-13 18:29 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 [this message]
2001-08-13 18:51     ` Larry Kilgallen
  -- 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