|
Carvalho <jfscarvalho@gmail.com> wrote:
> I need to change a txt file but when i use the fortran Write command
> to change it, the rest of the file content is erased. I can i change
> a txt file without erasing the rest of the file?
Basically, no. That's the way sequential files work. In that statement
does lie one hint. You can do things like that with a direct access
file. However, normal text files aren't direct access. It is sometmes
possible to do low-level tricks to use direct access to write on a
normal text file, but that requires understanding of exactly what is
going on at a system-dependent level.
Usually, the most practical way to do things like that is to copy the
file, making the modifications during the copy process.
--
Richard Maine | Good judgement comes from experience;
email: last name at domain . net | experience comes from bad judgement.
domain: summertriangle | -- Mark Twain
|