-1
My code reads an excel spreadsheet and returns me a list of Ids, but when I try to save the output that appears on the console in a txt file returns me null. Does anyone know why?
while ((output = buffer.readLine()) != null) {
if (output.contentEquals("# rc=0, count=0, message=Success")) {
FileOutputStream f = new FileOutputStream("file2.txt");
System.setOut(new PrintStream(f));
System.out.println(row.getCell(0));
}
}
as you are opening the spreadsheet?
– Adriano Gomes