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=-0.5 required=5.0 tests=BAYES_00,INVALID_MSGID, PP_MIME_FAKE_ASCII_TEXT autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII X-Google-Thread: 103376,913c345bb1f6b908 X-Google-Attributes: gid103376,public From: "Jean-Pierre Rosen" Subject: Re: Text Files Date: 2000/05/25 Message-ID: <8gjgbt$s1k$1@wanadoo.fr>#1/1 X-Deja-AN: 627193731 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> X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211 X-Complaints-To: abuse@wanadoo.fr X-Trace: wanadoo.fr 959268029 28724 193.250.35.108 (25 May 2000 15:20:29 GMT) Organization: Adalog X-MSMail-Priority: Normal NNTP-Posting-Date: 25 May 2000 15:20:29 GMT Newsgroups: comp.lang.ada Date: 2000-05-25T15:20:29+00:00 List-Id: Cameron McShane a �crit dans le message : 959260098.454638@hearts.q-net.net.au... > 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. > Wouldn't you, by any chance, be reading an integer value before ? If you do: -- assuming proper instantiation of Integer_IO Get (I); Get_Line (File_Name, Last); the first Get will leave you in front of the End_Of_Line, and the Get_Line will read an empty string. In this case, you don't really need a Skip_Line *before the Get_Line*. What you really need is a Skip_Line *after the Get*. Not exactly the same thing... -- --------------------------------------------------------- J-P. Rosen (Rosen.Adalog@wanadoo.fr) Visit Adalog's web site at http://pro.wanadoo.fr/adalog