Re: Fortran WRITE changes ctime
- From: pa@xxxxxxxxxxxxxxxxxxxxx (Pierre Asselin)
- Date: Fri, 24 Nov 2006 23:19:52 +0000 (UTC)
Leslie Ballentine <ballenti@xxxxxx> wrote:
open(unit=7,file=file7,access='APPEND')
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)
...
enddo
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
.
- Follow-Ups:
- Re: Fortran WRITE changes ctime
- From: glen herrmannsfeldt
- Re: Fortran WRITE changes ctime
- From: Leslie Ballentine
- Re: Fortran WRITE changes ctime
- References:
- Fortran WRITE changes ctime
- From: Leslie Ballentine
- Fortran WRITE changes ctime
- Prev by Date: Re: Cray binary format
- Next by Date: XL Fortran 'xxlf' still exist?
- Previous by thread: Re: Fortran WRITE changes ctime
- Next by thread: Re: Fortran WRITE changes ctime
- Index(es):
Relevant Pages
|