---
title: "fastExcel"
author: "iorit2003"
date: "2009-01-21T10:22:26Z"
tags: []
slug: "fastexcel"
draft: false
lastmod: "2009-01-21T10:22:26Z"
id: 319534
url: "https://iorit2003.iteye.com/blog/319534"
---

1. public void testFastExcel(String strPath) throws Exception {  
   2.       
   3.     Workbook workBook = FastExcel.createReadableWorkbook(new File(strPath));  
   4.     workBook.open();  
   5.   
   6.     Sheet s = workBook.getSheet(0);  
   7.       
   8.     String row;  
   9.     String cell;  
  10.       
  11.     for (int i = s.getFirstRow(); i <= s.getLastRow(); i++) {  
  12.         row = s.getRow(i);  
  13.         for (int j = s.getFirstColumn(); j <= s.getLastColumn(); j++) {  
  14.             cell = s.getCell(i, j);  
  15.         }  
  16.     }  
  17.       
  18.     workBook.close();  
  19. }