CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

A problem about class OFstream

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 5, 2008, 04:55
Default I create a file using OFstream
  #1
New Member
 
Jia Rui
Join Date: Mar 2009
Posts: 9
Rep Power: 17
jennyrui2008 is on a distinguished road
I create a file using OFstream class as follows:

OFstream fFile
(
runTime.path()+"/F"
);

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

Reply


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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Tmp class maka OpenFOAM Bugs 2 August 20, 2008 15:53
Library problem on a 64bit machine wrong ELF class ELFCLASS32 jango OpenFOAM Installation 0 June 11, 2007 08: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 05:26
CFD class notes Lee Main CFD Forum 0 January 30, 2004 13:39


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