CFD Online Discussion Forums

CFD Online Discussion Forums (
-   Main CFD Forum (
-   -   Fortran Question (

Vishwas April 12, 2006 17:53

Fortran Question
Question: I run a fortran code which writes data to a file. Then I run the code again and this time I want to write the data to the same file but without erasing the previously written data. What normally happens is the previous data is erased and only the new data is written in the file. Is there any command to add the new data to the previously written data?

Thank you

Peter Attar April 12, 2006 17:56

Re: Fortran Question
open(iunit,file='something',status='old',position= 'append') where iunit is your unit number

All times are GMT -4. The time now is 16:34.