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 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,cc9d51d301f523ef X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-12-14 12:11:25 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!arclight.uoregon.edu!wn14feed!worldnet.att.net!207.217.77.102!newsfeed2.earthlink.net!newsfeed.earthlink.net!stamper.news.pas.earthlink.net!newsread1.prod.itd.earthlink.net.POSTED!not-for-mail Message-ID: <3DFB9067.2040600@acm.org> From: Jeffrey Carter User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.0.0) Gecko/20020530 X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Newbee question References: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Date: Sat, 14 Dec 2002 20:10:16 GMT NNTP-Posting-Host: 63.184.33.61 X-Complaints-To: abuse@earthlink.net X-Trace: newsread1.prod.itd.earthlink.net 1039896616 63.184.33.61 (Sat, 14 Dec 2002 12:10:16 PST) NNTP-Posting-Date: Sat, 14 Dec 2002 12:10:16 PST Organization: EarthLink Inc. -- http://www.EarthLink.net Xref: archiver1.google.com comp.lang.ada:31828 Date: 2002-12-14T20:10:16+00:00 List-Id: Eric Robert wrote: > > I'm new to Ada (2nd day almost) and I'm trying to save an array of record in > a file. So far so goood. I save an integer first to know how many items they > are in the array. But how can I possibly read it back? I don't know the size > of the array yet. It seems to me that I need to use unconstrained arrays. If > so, I can't get the syntax right or a proper example explaining how to > enlarge the array... So, is this a homework problem? You might want to look at block statements. You can declare an array variable in a block statement using values determined at run time. -- Jeff Carter "Why don't you bore a hole in yourself and let the sap run out?" Horse Feathers