Ciao e grazie per la risposta,
ho provato a riscrivere il codice anche consultando il seguente link: http://forum.html.it/forum/showthread/t-1081772.html
ma lancia ancora la seguente eccezione:
Exception in thread "main" java.lang.NullPointerException
at readerexcel.readexcel_1.main(readexcel_1.java:20)

Cosa posso fare?

Questo è il codice riscritto
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileWriter;

import jxl.Cell;
import jxl.Workbook;


public class readexcel_1 {


public static void main(String[] args) throws Exception {

String buff = "";

Workbook workbook = Workbook.getWorkbook(new File("D:\\prova.xls"));

Sheet sheet = workbook.getSheet(0);
boolean flag1 = true;
boolean flag2 = true;
int riga = 0;
Cell currentCell;
while (flag1) {
int cella = 0;
while (flag2) {
currentCell = sheet.getCell(cella, riga);
flag2 = currentCell.getContents() == "" ? false : true;
}
BufferedWriter br = new BufferedWriter(new FileWriter("D:\\letto.txt"));
br.write(buff);
br.flush();
br.close();
}
}
}