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, 18 Jan 2016 11:52:58 -0000 (UTC) Organization: A noiseless patient Spider Message-ID: References: <77e47c8b-7dcc-4e86-8f89-1f348cdf08dd@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Injection-Date: Mon, 18 Jan 2016 11:52:58 -0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="da745e888d4a5182b5fda6212bbb0a63"; logging-data="8604"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18CMdmhSIYPUT1C/Z5K2hZU0UOFQXAUZDk=" User-Agent: Pan/0.139 (Sexual Chocolate; GIT bf56508 git://git.gnome.org/pan2) Cancel-Lock: sha1:yqNqKKaPKxhSC0fDwqPueR+OQuE= Xref: news.eternal-september.org comp.lang.ada:29147 Date: 2016-01-18T11:52:58+00:00 List-Id: On Sun, 17 Jan 2016 16:22:21 -0800, comicfanzine wrote: > Hi , > > björn lundin . > > First , I want to copy every line in a file , in a array of > unbounded_Strings , to work on them later . > > The problem is that i don't want to give a specific range at > initializing . > > In fact , it size must be known according to the number of lines in the > file . Store your strings in one of the containers from the Ada.Containers library. -- Brian