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,8efa3c7b8890281b,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-08-05 15:19:41 PST From: "Francis Crick" Newsgroups: comp.lang.ada Subject: implementation question about writing and reading from files Date: Sun, 5 Aug 2001 15:18:47 -0700 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2519.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2519.0000 NNTP-Posting-Host: 208.54.54.170 X-Original-NNTP-Posting-Host: 208.54.54.170 Message-ID: <3b6dc4ed@post.newsfeeds.com> X-Trace: post.newsfeeds.com!newsfeeds.com!pn!anonymous!127.0.0.1!pn 997049581 208.54.54.170 (5 Aug 2001 17:13:01 -0500) Organization: Newsfeeds.com http://www.newsfeeds.com 80,000+ UNCENSORED Newsgroups. The #1 Usenet Service on the Planet! X-Comments: This message was posted through Newsfeeds.com's, FREE publicly accessible Usenet Server - "post.newsfeeds.com" X-Comments2: IMPORTANT: Newsfeeds.com does not condone, nor support, spam or any illegal or copyrighted postings. X-Comments3: IMPORTANT: Under NO circumstances will postings containing illegal or copyrighted material through this service be tolerated!! X-Report: Please report illegal or inappropriate use to X-Abuse-Info: Please be sure to forward a copy of ALL headers, INCLUDING the body (DO NOT SEND ATTACHMENTS) Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!headwall.stanford.edu!news-out.nibble.net!news-in.nibble.net!newsfeed.onlynews.com!local-out2.newsfeeds.com!post.newsfeeds.com!newsfeeds.com!pn!anonymous!127.0.0.1!pn Xref: archiver1.google.com comp.lang.ada:11328 Date: 2001-08-05T15:18:47-07:00 List-Id: *** post for FREE via your newsreader at post.newsfeeds.com *** Hi Ada people...I'm teaching myself Ada95, and trying to write programs I actually want to use at the same time... I've been messing around for a bit trying to figure out how things work, but I'm starting to get a little frustrated so I thought i might seek help. The component I'm writing is for managing files by manipulating small chunks of them. The basic idea is that if the component is eventually given every chunk of an original file, it will be able to reconstruct the original file. The chunks will be roughly 1mb and the files are probably all going to be 100+mb.... so in addition to other things i'm trying to write procedures that: 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. I haven't really done a lot of this type of work in any other languages, so I'm not totally sure how I want to do this...i usually code on a much higher level... 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? Any suggestion, links, pointers, specs, sample code, or encouraging comments would be much appreciated. Thanks, Francis Crick -----= Posted via Newsfeeds.Com, Uncensored Usenet News =----- http://www.newsfeeds.com - The #1 Newsgroup Service in the World! -----== Over 90,000 Newsgroups - 16 Different Servers! =-----