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=-1.9 required=5.0 tests=BAYES_00,XPRIO autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,29f36805b9a20fe8,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-03-31 06:56:01 PST Path: supernews.google.com!sn-xit-03!supernews.com!cyclone-sjo1.usenetserver.com!news-out-sjo.usenetserver.com!newsfeed.direct.ca!look.ca!btnet-peer0!btnet!news5-gui.server.ntli.net!ntli.net!news2-win.server.ntlworld.com.POSTED!not-for-mail From: "chris.danx" Newsgroups: comp.lang.ada Subject: Streams in Ada X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Message-ID: Date: Sat, 31 Mar 2001 15:49:11 +0100 NNTP-Posting-Host: 62.252.154.26 X-Complaints-To: abuse@ntlworld.com X-Trace: news2-win.server.ntlworld.com 986050139 62.252.154.26 (Sat, 31 Mar 2001 15:48:59 BST) NNTP-Posting-Date: Sat, 31 Mar 2001 15:48:59 BST Organization: ntlworld News Service Xref: supernews.google.com comp.lang.ada:6290 Date: 2001-03-31T15:49:11+01:00 List-Id: Hi, I've looked about for examples on streams in Ada. I'm writing an virtual file system as a file on disk, and want to use streams. I have to be able to go back and forwards and read large blocks of data from the file at random positions. I have tried to locate an example of using streams but couldn't find any that didn't deal with sequential access. the first block is 512 bytes and inodes are 64bytes. then i have a set of blocks which are 16bytes long. you can see now why i'm using streams, but i can't seem to work out from the ref manual and Barnes what i should do. I recall the ref manual saying index is relative to stream element but i don't know what it means. Anyone know of a good example? Thanks in advance, Chris Campbell