comp.lang.ada
 help / color / mirror / Atom feed
From: Ted Dennison<dennison@telepath.com>
Subject: Re: implementation question about writing and reading from files
Date: Mon, 06 Aug 2001 16:03:16 GMT
Date: 2001-08-06T16:03:16+00:00	[thread overview]
Message-ID: <8dzb7.415$NJ6.1026@www.newsranger.com> (raw)
In-Reply-To: 3b6dc4ed@post.newsfeeds.com

In article <3b6dc4ed@post.newsfeeds.com>, Francis Crick says...
>read a chunk of any size from any part of a file and write it into memory
>and pass back the pointer.
>
>write a chunk of any size into any part of any file.
>
>should I use streams?  If so, which stream components?  Also, whats the best
>format to keep a big bunch of bytes in memory?  Should that be a stream of
>some sort, or a big array or what?

I'd probably use streams for this, yes. See Tom Moran's message for the specific
calls. You could just use the stream attributes instead of Read and Write, but
that would create one I/O per byte, which can be rather slow.

---
T.E.D.    homepage   - http://www.telepath.com/dennison/Ted/TED.html
          home email - mailto:dennison@telepath.com



      parent reply	other threads:[~2001-08-06 16:03 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-08-05 22:18 implementation question about writing and reading from files Francis Crick
2001-08-05 22:43 ` tmoran
2001-08-09 23:19   ` Francis Crick
2001-08-10  0:55     ` tmoran
2001-08-10 14:49     ` Ted Dennison
2001-08-10 15:44       ` Warren W. Gay VE3WWG
2001-08-06 16:03 ` Ted Dennison [this message]
replies disabled

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