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,2156f6cd0c7bcac6 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2000-09-28 20:15:40 PST Path: supernews.google.com!sn-xit-02!sn-xit-01!supernews.com!newshub2.rdc1.sfba.home.com!news.home.com!news1.frmt1.sfba.home.com.POSTED!not-for-mail From: tmoran@bix.com Newsgroups: comp.lang.ada Subject: Re: File I/O References: X-Newsreader: Tom's custom newsreader Message-ID: Date: Fri, 29 Sep 2000 03:15:39 GMT NNTP-Posting-Host: 24.20.190.201 X-Complaints-To: abuse@home.net X-Trace: news1.frmt1.sfba.home.com 970197339 24.20.190.201 (Thu, 28 Sep 2000 20:15:39 PDT) NNTP-Posting-Date: Thu, 28 Sep 2000 20:15:39 PDT Organization: @Home Network Xref: supernews.google.com comp.lang.ada:864 Date: 2000-09-29T03:15:39+00:00 List-Id: >How can I read a file and write to a file in Ada? What kind of file? For text files, consisting of variable length lines separated by CR or LF, use Ada.Text_IO For files consisting of a homogenous series of binary records, look at Ada.Sequential_IO For files consisting of a homogenous set of binary records, randomly accessible, look at Ada.Direct_IO For files with heterogenous binary stuff, look at Ada.Streams.Stream_IO