Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- File file = new File("test.xls");
- WritableWorkbook workbook = Workbook.createWorkbook(file);
- :
- :
- :
- :
- InputStream in = new FileInputStream(file);
- if (in == null) {
- out.close();
- }
- else
- {
- byte[] buffer = new byte[4096];
- int len;
- while ((len = in.read(buffer)) != -1) {
- out.write(buffer, 0, len);
- }
- out.flush();
- in.close();
- out.close();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement