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.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,a0833bbed8752e1f X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!newsfeed2.dallas1.level3.net!news.level3.com!newsfeed.mathworks.com!nntp.abs.net!news-FFM2.ecrc.net!newsfeed00.sul.t-online.de!newsmm00.sul.t-online.de!t-online.de!news.t-online.com!not-for-mail From: Martin Krischik Newsgroups: comp.lang.ada Subject: Re: variable lenght strings Date: Sun, 24 Oct 2004 17:46:57 +0200 Organization: AdaCL Message-ID: <1545949.UqgTOGcyTg@linux1.krischik.com> References: <1209757.RtbsXkycWi@linux1.krischik.com> Reply-To: krischik@users.sourceforge.net Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit X-Trace: news.t-online.com 1098634013 03 12489 1foTXb+1AT8xRCv 041024 16:06:53 X-Complaints-To: usenet-abuse@t-online.de X-ID: SfwsH+ZcQevWpiIV4Liq7eHxrDxvKYIMeSjuYlw5Dce7bHGTeJqpQ0 User-Agent: KNode/0.8.0 Xref: g2news1.google.com comp.lang.ada:5672 Date: 2004-10-24T17:46:57+02:00 List-Id: Matthew Heaney wrote: > Martin Krischik writes: > >> > There's a way using the standard Get_Line, explained in AdaPower. >> >> Which is buggy- It will fail if the length of the last line is a >> multiple of buffer length! I once send a correction but is was >> ignored. > > Can you explain this problem in more detail? The algorithm I showed in > my previous post should work irrespective of the length of the input > line. When the last line is missing a CR/LF - happens often in user edited files - and is a multiple of the internal buffer in lenght then an exception is raised. Bug or feature? If you need to read user edited files than it's a nuciance in any case. With Regards Martin -- mailto://krischik@users.sourceforge.net http://www.ada.krischik.com