[fpc-pascal]Error messages again

Michael Van Canneyt michael.vancanneyt at wisa.be
Tue Dec 19 10:55:21 CET 2000

On Tue, 19 Dec 2000, Lindmayer Antal wrote:

> Hi!
> I asked a few days ago how to redirect error messages from std i/o to 
> file. Your answer was: run the program with arguments. 

The solution is to close stderr and to re-open it to a file:

  // now all errors go to somefile...
Make sure you have write permission on somefile.  


More information about the fpc-pascal mailing list