I am designing a program in JAVA that captures results in about 10 iterations. At the end of these iterations all the results must be written into a log file.
If any ex
OutputStream os = ....; PrintStream ps = new PrintStream(os); while(notDone) { try { doStuff(); } catch(Throwable t) { t.printStackTrace(ps); } ps.print(results); }