Skip to content

Commit c68f537

Browse files
author
Rajeev Kumar Singh
committed
workbook.close()
1 parent 412faba commit c68f537

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/main/java/ExcelWriter.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,9 @@ private static void modifyExistingWorkbook() throws InvalidFormatException, IOEx
130130
FileOutputStream fileOut = new FileOutputStream("existing-spreadsheet.xlsx");
131131
workbook.write(fileOut);
132132
fileOut.close();
133+
134+
// Closing the workbook
135+
workbook.close();
133136
}
134137
}
135138

0 commit comments

Comments
 (0)