|
[Sponsors] |
Opening a file from previous time folder and add new lines |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
July 3, 2014, 16:47 |
Opening a file from previous time folder and add new lines
|
#1 |
Member
Join Date: Feb 2012
Posts: 49
Rep Power: 14 |
Dear FOAMers,
Using the code below, one can create a file in each time folder and write some data into a file Code:
OFstream test (runTime.timeName()/"test.csv"); test << " " << endl; I would appreciate any idea. |
|
July 6, 2014, 17:45 |
|
#2 |
Senior Member
Canakkale Dardanelspor
Join Date: Aug 2012
Posts: 135
Rep Power: 13 |
Utilise 'append' functionality of C++.
http://stackoverflow.com/questions/2...text-file-in-c |
|
July 6, 2014, 18:35 |
|
#3 | |
Member
Join Date: Feb 2012
Posts: 49
Rep Power: 14 |
Quote:
|
||
November 22, 2014, 11:31 |
|
#4 |
Member
Join Date: Feb 2012
Posts: 49
Rep Power: 14 |
Sorry, the suggestion of HakikiCanakkaleli works, by using the functionality of c++.
Thanks Last edited by ooo; November 22, 2014 at 16:49. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[openSmoke] libOpenSMOKE | Tobi | OpenFOAM Community Contributions | 562 | January 25, 2023 09:21 |
[PyFoam] and paraview | eelcovv | OpenFOAM Community Contributions | 28 | May 30, 2016 09:23 |
plot over time | fferroni | OpenFOAM Post-Processing | 7 | June 8, 2012 07:56 |