CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM Running, Solving & CFD (
-   -   A problem about class OFstream (

jennyrui2008 December 5, 2008 04:55

I create a file using OFstream
I create a file using OFstream class as follows:

OFstream fFile

When I first run the program, "F" file is created and data is written. When I run the program for the second time, all the content in the "F" file is deleted and new data is written.

How could the new data append the old data in "F" file, rather than delete all the old data?

Thanks for your suggestion.

All times are GMT -4. The time now is 19:29.