- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I am writing a FORTRAN console application with some C++ code. I want to direct the output from FORTRAN (write (6,*) 'blabla') and from C++ to either the console or to a log-file. I want to be able to change the desitnation from inside the program. The fortran output can easily be re-directed by just opening/closing a unit=6 file but the C++ output still goes to the console... How can I direct both streams to the same log file ?
I am writing a FORTRAN console application with some C++ code. I want to direct the output from FORTRAN (write (6,*) 'blabla') and from C++ to either the console or to a log-file. I want to be able to change the desitnation from inside the program. The fortran output can easily be re-directed by just opening/closing a unit=6 file but the C++ output still goes to the console... How can I direct both streams to the same log file ?
Link Copied
0 Replies
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page