In my app I have two methods load() and parse() that handle correspondingly reading from file operation and parsing that file into my internal data structure. load() method makes use of SwingWorker class and therefore once I enter SwingWorker#done() i must somehow
I used the following code to write output to a file. FileOutputStream fout = new FileOutputStream(fname,true); PrintStream ps = new PrintStream(fout); Random r = new Random(10);