I need to capture runtime error messages to a file. The documentation for Fortran says that I can do this with simple redirection, i.e.
c:> foo.exe >>errors.txt
When I try this, error messages still are sent to the console. The file "errors.txt " is created, but is always empty.
How can I get this to work?