comp.lang.ada
 help / color / mirror / Atom feed
From: tmoran@acm.org
Subject: Re: implementation question about writing and reading from files
Date: Sun, 05 Aug 2001 22:43:27 GMT
Date: 2001-08-05T22:43:27+00:00	[thread overview]
Message-ID: <j_jb7.33402$Kd7.20784576@news1.rdc1.sfba.home.com> (raw)
In-Reply-To: 3b6dc4ed@post.newsfeeds.com

  I'd suggest Ada.Streams.Stream_IO

> read a chunk of any size from any part of a file and write it into memory
> and pass back the pointer.
    procedure Read (File : in     File_Type;
                    Item :    out Stream_Element_Array;
                    Last :    out Stream_Element_Offset;
                    From : in     Positive_Count);

> write a chunk of any size into any part of any file.
  assuming "any file" does not include, for instance, printer output,
    procedure Write(File : in     File_Type;
                    Item : in     Stream_Element_Array;
                    From : in     Positive_Count);



  reply	other threads:[~2001-08-05 22:43 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 [this message]
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
replies disabled

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