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=-0.5 required=5.0 tests=BAYES_00,INVALID_MSGID, PP_MIME_FAKE_ASCII_TEXT autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII X-Google-Thread: 103376,d42619e6a8a00add X-Google-Attributes: gid103376,public From: "Jean-Pierre Rosen" Subject: Re: Reading "leftover" chunks from files Date: 1999/08/20 Message-ID: <7pjecg$ln8$1@wanadoo.fr>#1/1 X-Deja-AN: 515074320 References: <37BCD2F1.E0AECF04@Think.So> X-Priority: 3 X-Mimeole: Produced By Microsoft MimeOLE V5.00.2014.211 X-Complaints-To: abuse@wanadoo.fr X-Trace: wanadoo.fr 935148752 22248 193.250.164.76 (20 Aug 1999 11:32:32 GMT) Organization: Adalog X-MSMail-Priority: Normal NNTP-Posting-Date: 20 Aug 1999 11:32:32 GMT Newsgroups: comp.lang.ada Date: 1999-08-20T11:32:32+00:00 List-Id: Matthew a �crit dans le message : 37BCD2F1.E0AECF04@Think.So... . > > I want to read in a file so that I can get fixed-length chunks of data > backwards, and also read in whatever data (smaller than the chunk size) > is left behind at the end of the file. I have written a package called Direct_Text_IO. It is a mixture of Direct_IO and Text_IO, i.e. it allows random access in a text file. It provides usual operations on Character and strings, and deals properly with end of lines and end of pages. It is not finalized (i.e. I didn't yet write the documentation); once it is done, I will put it on Adalog's components page. In the mean time, send me a note if you want to try it (my ISP refuses attachments in this newsgroup). Feel free to use it and report any problem you may encounter ! -- --------------------------------------------------------- J-P. Rosen (Rosen.Adalog@wanadoo.fr) Visit Adalog's web site at http://perso.wanadoo.fr/adalog