This is a simple Java POC to read and write Microsoft Excel files.
The program accepts three input parameters from the command line:
- File path
- Sheet name
- Data to be written
An example command is as follows:
java -jar ReadWriteExcelFilePoc-1.0-SNAPSHOT.jar /home/sunny/Documents/testExcel.xls TestSheet TestingData
If the file is not found at the provided path, a new file will be created and that data will be written at cell 0,0. If a file is found, the data will be appended at the end of the sheet after creating a new row.