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,718bd701b6b36346 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-08-12 16:49:35 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: dewar@gnat.com (Robert Dewar) Newsgroups: comp.lang.ada Subject: Re: GNAT/Ada95 Streams Performance Issue Date: 12 Aug 2002 16:49:34 -0700 Organization: http://groups.google.com/ Message-ID: <5ee5b646.0208121549.6840b712@posting.google.com> References: <3D51ECC9.8020406@cogeco.ca> NNTP-Posting-Host: 205.232.38.14 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1029196174 31524 127.0.0.1 (12 Aug 2002 23:49:34 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 12 Aug 2002 23:49:34 GMT Xref: archiver1.google.com comp.lang.ada:27964 Date: 2002-08-12T23:49:34+00:00 List-Id: hebisch@math.uni.wroc.pl (Waldek Hebisch) wrote in message news:... > loop > Ada.Text_IO.Get_Line( Line, Last ); > Ada.Text_IO.Put_Line( Line(1..Last) ); > end loop; This is nothing *like* a "raw cat" program, it has quite subtle semantics that you likely do not intend :-) The proper way to do a big copy is with Stream_IO. The design of Text_IO is definitely not suitable for large scale file operations.