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-Thread: 103376,ced04d0f82bf1abe X-Google-Attributes: gid103376,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news1.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!wns14feed!worldnet.att.net!attbi_s21.POSTED!53ab2750!not-for-mail From: "Jeffrey R. Carter" User-Agent: Thunderbird 2.0.0.6 (Windows/20070728) MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Missing CR/LF in Gnat files? References: <13eomjrhjs3al0a@corp.supernews.com> <1189897537.544300.214650@g4g2000hsf.googlegroups.com> <13eoqg17ac9kp58@corp.supernews.com> <46ecbbdf$1_7@news.bluewin.ch> In-Reply-To: <46ecbbdf$1_7@news.bluewin.ch> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: NNTP-Posting-Host: 12.201.97.213 X-Complaints-To: abuse@mchsi.com X-Trace: attbi_s21 1189967899 12.201.97.213 (Sun, 16 Sep 2007 18:38:19 GMT) NNTP-Posting-Date: Sun, 16 Sep 2007 18:38:19 GMT Organization: AT&T ASP.att.net Date: Sun, 16 Sep 2007 18:38:19 GMT Xref: g2news2.google.com comp.lang.ada:1958 Date: 2007-09-16T18:38:19+00:00 List-Id: Gautier wrote: > while not End_of_File(Standard_input) loop > Get_Line(s,l); > Put_Line(s(1..l)); > end loop; Even better is Ada.Text_IO.Put_Line (Item => Ada.Text_IO.Get_Line); This is Ada 07; Ada-95 users can use PragmARC.Get_Line instead of Ada.Text_IO.Get_Line; and Ada-83 users can modify PragmARC.Get_Line to get rid of the hierarchical name. http://pragmada.home.mchsi.com/ -- Jeff Carter "Perfidious English mouse-dropping hoarders." Monty Python & the Holy Grail 10