> ... have to catch the exception and then log it to the file. Right. I do also know how to open a file and write to it. But how do I get at the stack trace? I would like to have it look the same in the file as what gets printed to the screen. Thanks again. Olaf