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=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: Brian Drummond Newsgroups: comp.lang.ada Subject: Re: Re-write a file in Ada Date: Mon, 11 Jan 2016 17:16:05 -0000 (UTC) Organization: A noiseless patient Spider Message-ID: References: <77e47c8b-7dcc-4e86-8f89-1f348cdf08dd@googlegroups.com> <888e0bed-6d19-4ab6-84e7-67dd2f227407@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Injection-Date: Mon, 11 Jan 2016 17:16:05 -0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="da745e888d4a5182b5fda6212bbb0a63"; logging-data="14743"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+AGk899TF2PXbYIyPLuPnvg0lvDlO9HJ4=" User-Agent: Pan/0.139 (Sexual Chocolate; GIT bf56508 git://git.gnome.org/pan2) Cancel-Lock: sha1:gW9Ra5aWLPF0WYSNiNySkNBPGYA= Xref: news.eternal-september.org comp.lang.ada:29089 Date: 2016-01-11T17:16:05+00:00 List-Id: On Sun, 10 Jan 2016 08:54:01 -0800, comicfanzine wrote: > Ok , in others words : > > The error : > > raised ADA.IO_EXCEPTIONS.END_ERROR : a-tigeli.adb:96 In outline, when you see this sort of error, find the installation's "Ada include directory" which contains the named file... locate a-tigeli.adb /usr/lib/gcc/x86_64-linux-gnu/4.9/rts-native/adainclude/a-tigeli.adb open in editor (read only) ... and see -- A D A . T E X T _ I O . G E T _ L I N E -- so we know the error occurred in "Get_Line" And look at line 96: function Get_Chunk (N : Positive) return Natural is ...blah... else raise End_Error; end if; Looks like we ran out of file somehow. From here on it's usually straightforward. -- Brian