JAVA 엑셀 파일 읽기 & 쓰기
·
dev/java
엑셀 파일 읽어서 쓰기 void WriteExcel() { String path = excel_save_path; // 읽을 파일 경로 try {File file = new File(path);FileInputStream inputStream = new FileInputStream(file);XSSFWorkbook xworkbook = new XSSFWorkbook(inputStream); // 2007 이후 버전(xlsx파일) XSSFSheet curSheet; // 현재 sheetHSSFCell curCell; // 현재 cellXSSFRow curRow; // 현재 row CellStyle cellStyle = xworkbook.createCellStyle();cellStyle.setAlignmen..