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

How to open a old file for APPEND

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

Like Tree2Likes

Reply
 
LinkBack Thread Tools Display Modes
Old   February 1, 2012, 06:18
Default
  #21
Senior Member
 
Illya Shevchuk
Join Date: Aug 2009
Location: Darmstadt, Germany
Posts: 169
Rep Power: 7
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, 05:34
Default
  #22
New Member
 
Zhong, Hong Min
Join Date: Oct 2012
Location: UESTC, Chengdu in China
Posts: 8
Rep Power: 4
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?
iamacloud is offline   Reply With Quote

Reply

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
how to open a cas file in gambit Michal K FLUENT 5 March 14, 2009 18:37
FORTRAN(OPEN->APPEND) kris CD-adapco 1 November 30, 2004 08:57
where to open the file jx FLUENT 0 February 19, 2004 13:19
Scheme: append to existend file Ingolf FLUENT 0 November 10, 2003 06:27
append data to a file Wen Long Main CFD Forum 1 April 11, 2002 21:45


All times are GMT -4. The time now is 18:23.