Re: Fortran WRITE changes ctime

Leslie Ballentine <ballenti@xxxxxx> wrote:

do ...
write(7,610) t,ernorm,E,am1,am2,dm1,dm2,c12
610 format(f7.3,1pe10.1,e13.5,0p4f10.4,1pe10.2)
call flush(7)

Why is the ctime of the file being affected?

I use g77 and Suse Linux 9.3

I just straced a small example similar to your code sample. It
opens the file, seeks to the end and, for some reason, calls
ftruncate(). ftruncate() is what changes the ctime.

pa at panix dot com