CFD Online Logo CFD Online URL
Home > Forums > OpenFOAM Running, Solving & CFD

A problem about class OFstream

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Display Modes
Old   December 5, 2008, 04:55
Default I create a file using OFstream
New Member
Jia Rui
Join Date: Mar 2009
Posts: 9
Rep Power: 10
jennyrui2008 is on a distinguished road
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.
jennyrui2008 is offline   Reply With Quote


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Tmp class maka OpenFOAM Bugs 2 August 20, 2008 14:53
Library problem on a 64bit machine wrong ELF class ELFCLASS32 jango OpenFOAM Installation 0 June 11, 2007 07:29
OFstream doesnbt create directories or throw errors brooksmoses OpenFOAM 3 January 30, 2006 07:28
Expanding a class fabianpk OpenFOAM 0 October 3, 2005 04:26
CFD class notes Lee Main CFD Forum 0 January 30, 2004 13:39

All times are GMT -4. The time now is 22:53.