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!feeder.eternal-september.org!news.swapon.de!gandalf.srv.welterde.de!news.jacob-sparre.dk!loke.jacob-sparre.dk!pnx.dk!.POSTED!not-for-mail From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: Re-write a file in Ada Date: Fri, 8 Jan 2016 15:22:54 -0600 Organization: JSA Research & Innovation Message-ID: References: <77e47c8b-7dcc-4e86-8f89-1f348cdf08dd@googlegroups.com> NNTP-Posting-Host: rrsoftware.com X-Trace: loke.gir.dk 1452288175 27650 24.196.82.226 (8 Jan 2016 21:22:55 GMT) X-Complaints-To: news@jacob-sparre.dk NNTP-Posting-Date: Fri, 8 Jan 2016 21:22:55 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.5931 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 Xref: news.eternal-september.org comp.lang.ada:29060 Date: 2016-01-08T15:22:54-06:00 List-Id: wrote in message news:77e47c8b-7dcc-4e86-8f89-1f348cdf08dd@googlegroups.com... > Hello everybody , > > Next , a working code which re-write entirely a file . > > I would like to modify it , doing the same thing exept that : > > Undounded_strings will be generate every time there is a next line . > > Then , several get_line will be done on those strings . > > And in final , put those modified strings in the file . > > > Anyone knows how to code that ? I'm sure most of us can code whatever we need, and the above seems trivial. But most of us are also professional programmers, either working in Ada or working in some other language and doing hobby projects in Ada. We're happy to help, but being pros has two effects: (1) We're not interested in writing other people's programs for them. We'll help people learn, but that's very different. (2) One of the first things that professional programmers learn is that the hardest thing to do is to debug someone else's code. On top of which, you gave code (which is good), but you never explained (in detail!) what happens compared to what you expect. Given that, the only serious alternative is to spend a hour or more figuring out what you're trying to do and then create a program (from scratch) that does that. I suspect most everyone here has something better to do than that. (The only time I'd do this is if I find the problem is interesting, which certainly is not the case here.) I, personally, rarely look at the code posted here; I provide help based on the error and then work backwards from there. Since you didn't provide the error, and I'm surely not going try to load and compile your code, attempt to figure out what data you are reading, whether the results I get make any sense, and so on. I'd suggest telling us what results you are getting from your code and what you are expecting, and perhaps someone will want to help you (but no promises). Randy.