Dear Sir/ Madam
I need to read from Excel, change some data and rewrite in same excel like
these codes:
==============================================================
// reading
.....
POIFSFileSystem poifsFileSystem;
........
hssfWorkbook = new HSSFWorkbook(poifsFileSystem, false);
// change data from some cells in hssfWorkbook
....
....
// Rewriting:
......
FileOutputStream outputStream =
new FileOutputStream(CONFIG_PATH);
hssfWorkbook.write(outputStream);
outputStream.close();
==============================================================
after writing, when I open again this file, I see this file was damaged and
many content of my data have lost. I get this warning:
Excel file unreachable content in 'project.xsl'. Do you want to recover the
content of this workbook?......
please help me how can I rerwrite to Excel file without these problems.
Thanks a lot