CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   How to open a old file for APPEND (https://www.cfd-online.com/Forums/openfoam-solving/58347-how-open-old-file-append.html)

linch February 1, 2012 05:18

Quote:

Originally Posted by hjasak (Post 181529)
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 (Post 181529)
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 http://www.cfd-online.com/OpenFOAM_D...hment_icon.gif hrvsStreams.tgz

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

Best regards,
Ilya

iamacloud July 13, 2013 04:34

Quote:

Originally Posted by linch (Post 342235)
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?


All times are GMT -4. The time now is 06:45.