Hi,
I am fairly new to Java and i am trying to print the stack trace to a text file because if cannot see all of it in the ms-dos window. The line of code i am trying to use is as follows:
sqle.printStackTrace(new PrintWriter(new FileWriter("SQLException.txt"));
sqle is an SQLException that has been thrown. The code creates the text file, but there is nothing in it.
Thanks in advance
I am fairly new to Java and i am trying to print the stack trace to a text file because if cannot see all of it in the ms-dos window. The line of code i am trying to use is as follows:
sqle.printStackTrace(new PrintWriter(new FileWriter("SQLException.txt"));
sqle is an SQLException that has been thrown. The code creates the text file, but there is nothing in it.
Thanks in advance