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, T_FILL_THIS_FORM_SHORT autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,f12483752dbc412b X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-03-09 15:27:57 PST Path: archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!news.tele.dk!small.news.tele.dk!195.86.7.162!newsfeed.wirehub.nl!194.6.79.69.MISMATCH!peernews!peer.cwci.net!news5-gui.server.ntli.net!ntli.net!news11-gui.server.ntli.net.POSTED!not-for-mail From: "chris.danx" Newsgroups: comp.lang.ada References: Subject: Re: How would i keep 'records' in ADA ? X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4807.1700 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700 Message-ID: Date: Sat, 9 Mar 2002 23:29:05 -0000 NNTP-Posting-Host: 213.104.124.253 X-Complaints-To: abuse@ntlworld.com X-Trace: news11-gui.server.ntli.net 1015716471 213.104.124.253 (Sat, 09 Mar 2002 23:27:51 GMT) NNTP-Posting-Date: Sat, 09 Mar 2002 23:27:51 GMT Organization: ntlworld News Service Xref: archiver1.google.com comp.lang.ada:20994 Date: 2002-03-09T23:29:05+00:00 List-Id: "Jim" wrote in message news:ab6237e2.0203091435.44234ae4@posting.google.com... > i dont mean records as part of the programming in ADA but if i wanted > to keep details of a person eg name, address, post code etc for a > program, how would i do it ? I'm not sure I understand what you mean exactly but if you mean where can I store info for an Ada program, then in a file. You can have a text file and a binary file. If you use a text file, you use text_io and friends to get and remove the info. For binary files you get more of a choice. - Direct_IO - Sequential_IO - Streams All allow you to write/read records to/from a binary file. Streams (on files) are better when you want records of different types in a file, the others have pros & cons and it's really dependant on what you need them for.