- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
i am trying to capture the output of the Fortran subroutine (in a DLL) from within VB.Net. The fortran subroutine that i am calling is printing to the standard output (eg. write(*,*) str ).
In VB.Net (2003) i tried redirecting the standard output to a file (please see code below). This only redirects the Console.WriteLine output, not the output coming from the fortran DLL (write).
i would greatly appreciate any help in this regard. please let me know if you have more questions.
Thanks very much.
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
...
Console.SetOut(System.IO.File.AppendText("Log.txt"))
Console.WriteLine("console output")
Call DLL_CALC("par")
Console.Out.Flush()
...
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
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