<
comicf...@gmail.com> wrote in message
news:77e47c8b-7dcc-4e86...@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.