|
[Sponsors] |
April 11, 2002, 19:00 |
append data to a file
|
#1 |
Guest
Posts: n/a
|
Dear firends:
I got a problem with appending data to a existing file, how should I do with Fortran 77? I'm using linux redhat 6.0, f77 as complier. I wrote: c------------- open(1,file='test.txt',status='old',position='appe nd') write(1,*)'this is appended data' write(1,*)'this is again appended data' close(1) end c-------------- but it doesn't recognize 'append', what's wrong? Thanks for helping me out. Wen |
|
April 11, 2002, 21:45 |
Re: append data to a file
|
#2 |
Guest
Posts: n/a
|
try this... and make sure you do not use a rewind statement otherwise it will go back to the start of the file and effectively cancel the append command.
open(1,file='test.txt',status='unknown', access='append') |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[OpenFOAM.com] OpenFOAM 1.7.1 installation on LINUX UBUNTU 10.10 | electrosin | OpenFOAM Installation | 40 | May 31, 2016 06:11 |
[swak4Foam] GroovyBC the dynamic cousin of funkySetFields that lives on the suburb of the mesh | gschaider | OpenFOAM Community Contributions | 300 | October 29, 2014 19:00 |
ParaView Compilation | jakaranda | OpenFOAM Installation | 3 | October 27, 2008 12:46 |
gcc and executable file from Mac to Linux | simone Marras | Main CFD Forum | 0 | April 8, 2007 16:49 |
PHI file structure | Eugene | Phoenics | 9 | November 2, 2001 23:00 |