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.8 required=5.0 tests=BAYES_00,INVALID_DATE autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,c96efb67e4b1a2c5 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 1994-12-16 20:34:52 PST Path: bga.com!news.sprintlink.net!howland.reston.ans.net!swiss.ans.net!cmcl2!thecourier.cims.nyu.edu!thecourier.cims.nyu.edu!nobody From: dewar@cs.nyu.edu (Robert Dewar) Newsgroups: comp.lang.ada Subject: Re: How does the Ada 95 Streams package Index? Date: 16 Dec 1994 10:16:37 -0500 Organization: Courant Institute of Mathematical Sciences Message-ID: <3csb0l$mu1@gnat.cs.nyu.edu> References: <3cra2n$rio@ixnews1.ix.netcom.com> NNTP-Posting-Host: gnat.cs.nyu.edu Date: 1994-12-16T10:16:37-05:00 List-Id: Tim, your question on stream files is confusing, streams do not have any concept of records. Indeed that might be considered to be THE distinguishing characteristic of streams. Certainly there is no filling out of these (non-existent) records to their maximum size. The Set_Index function is like lseek in C, although a little more abstracted. It sets the position to the indicated storage element. If you are writing "variable length records" to the stream, it is up to the program to know the proper starting position for a record that you want to point to (possibly by use of the Index function). Actually, if you think of record = one storage element, then your view of things is correct, but then of course there is no issue of variable length records, or filling out a record to its maximum size :-)