Ok, I'm dumping results to a text file via PrintWriter...
The problem is that each line I write to my text file overwrites the previous, so all I end up with is the final result... the Java Sun forums are unfortunately not helping.
I've used the carriage returns...what am I missing? My other alternative is to use BufferedWriter, but for some reason that's not being recognized...Code:File logFile = new File("C:/Correlate.log"); FileOutputStream logFileStream = new FileOutputStream (logFile); PrintWriter writeFile = new PrintWriter (logFileStream); try { if(writeFlag == 1) { //writeFile.println("\n\n"); writeFile.println(noSignature); writeFile.println(Correlate.getFile() + "\r\n"); } } catch(Exception e) { System.out.println("Crap...oooops!!"); } writeFile.close(); }
Grrr....lol




Reply With Quote