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=-2.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI autolearn=unavailable autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,49f7dd1bad1910ff X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-10-14 05:51:30 PST Path: archiver1.google.com!news2.google.com!news.maxwell.syr.edu!skynet.be!skynet.be!freenix!enst.fr!melchior!cuivre.fr.eu.org!melchior.frmug.org!not-for-mail From: sk Newsgroups: comp.lang.ada Subject: Re: Problems with Ada.Text_IO and strings. Date: Tue, 14 Oct 2003 07:57:39 -0500 Organization: Cuivre, Argent, Or Message-ID: References: <8336eb21.0310131423.7410e1ec@posting.google.com> <8336eb21.0310140439.393f2e8@posting.google.com> NNTP-Posting-Host: lovelace.ada-france.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: melchior.cuivre.fr.eu.org 1066135791 29345 80.67.180.195 (14 Oct 2003 12:49:51 GMT) X-Complaints-To: usenet@melchior.cuivre.fr.eu.org NNTP-Posting-Date: Tue, 14 Oct 2003 12:49:51 +0000 (UTC) To: comp.lang.ada@ada-france.org Return-Path: User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.1) Gecko/20020828 X-Accept-Language: en-us, en X-Virus-Scanned: by amavisd-new-20030616-p5 (Debian) at ada-france.org X-BeenThere: comp.lang.ada@ada-france.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Gateway to the comp.lang.ada Usenet newsgroup List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Xref: archiver1.google.com comp.lang.ada:809 Date: 2003-10-14T07:57:39-05:00 Bleakcabal : > It would have been great if Ada strings read the end of line > character and Put took care of them so the lines were > automagicly sliced like C strings. declare Buffer : String (1 .. Max_Buffer) := (Others => ' '); BufLast : Natural := 0; begin TIO.Get_Line (Buffer, BufLast); TIO.Put_Line (Buffer(Buffer'First .. BufLast)); end; -- ------------------------------------------------- -- Merge vertically for real address -- -- s n p @ t . o -- k i e k c c m -------------------------------------------------