I'm facing a problem in C++ and Fortran. I want to write some statements into a common log file. Here it is.
1. Fortran opens a log file and writes some statement into the file.
2. Then it will call a C++ function. Note: From Fortran I'm calling C++ function.
3. Inside C++ i've to write the log information to the same file.
4. After writing go back to fortran, Fortran will write again into that file.
Note: Open and close are happening inside Fortran that too only onec at the start and end.
The Fortran program would have to seek to the end of the file immediately after calling the C++ program in order to write at the (new) end of the file.