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

How to open a old file for APPEND

Register Blogs Community New Posts Updated Threads Search

Like Tree3Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 1, 2012, 05:18
Default
  #21
Senior Member
 
Illya Shevchuk
Join Date: Aug 2009
Location: Darmstadt, Germany
Posts: 176
Rep Power: 16
linch is on a distinguished road
Quote:
Originally Posted by hjasak View Post
OK, it looks like this, using the stream modifier on construction - the one below opens the file for append:

OFstream of("hello", ios_base::app);
of << 0 << nl << 1 << nl << 2 << endl;
It doesn't work in OF 1.7.

Quote:
Originally Posted by hjasak View Post
I changed 3 files, all in the main library:
OFstream.H
OFstream.C
regIOobjectWrite.C

You will, of course, need to rebuild the whole thing. The files are attached below hrvsStreams.tgz
I can't download it for some reason. I also get the unknown .unk file.

Best regards,
Ilya
linch is offline   Reply With Quote

Old   July 13, 2013, 04:34
Default
  #22
New Member
 
Zhong, Hong Min
Join Date: Oct 2012
Location: UESTC, Chengdu in China
Posts: 8
Rep Power: 13
iamacloud is on a distinguished road
Quote:
Originally Posted by linch View Post
It doesn't work in OF 1.7.


I can't download it for some reason. I also get the unknown .unk file.

Best regards,
Ilya
Change the suffix 'unk' into 'tgz' directly.
Welcome to any boy to give me a better method?
Michael@UW likes this.
iamacloud 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
how to open a cas file in gambit Michal K FLUENT 5 March 14, 2009 16:37
FORTRAN(OPEN->APPEND) kris Siemens 1 November 30, 2004 07:57
where to open the file jx FLUENT 0 February 19, 2004 12:19
Scheme: append to existend file Ingolf FLUENT 0 November 10, 2003 05:27
append data to a file Wen Long Main CFD Forum 1 April 11, 2002 20:45


All times are GMT -4. The time now is 11:08.