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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,913c345bb1f6b908 X-Google-Attributes: gid103376,public From: Dale Stanbrough Subject: Re: Text Files Date: 2000/05/26 Message-ID: #1/1 X-Deja-AN: 627343364 References: <8gdguu$f9v$1@news.cowan.edu.au> <959088712.853876@hearts.q-net.net.au> <392AF852.93E0EDBE@quadruscorp.com> <959260098.454638@hearts.q-net.net.au> Posted-And-Mailed: yes X-Trace: 26 May 2000 09:01:49 GMT, r1021c-02.ppp.cs.rmit.edu.au Organization: RMIT User-Agent: MT-NewsWatcher/3.0 (PPC) Newsgroups: comp.lang.ada Date: 2000-05-26T00:00:00+00:00 List-Id: Cameron McShane wrote: > Hey all > > Thanks everyone for your comments and help > > It seems that I needed a skip_line before the get_line. > > ie > Text_io.skip_line; > Text_io.get_line(Filename, Last); > Text_Io.Create( > File => In_Data, > Mode => Text_Io.Out_File, > Name => Filename(1..Last)); > > I was sure I had tried this already, but obviously I was mistaken. I would suggest that you download my (actually the FSF's!) interactive text_io simulator that lets you examine the effect of various input routines. It's at... www.cs.rmit.edu.au/~dale/software/index.html look for Io_View. I would certainly recommend that your lecturer installs it on your computers for everyone to use. Dale