FileInputStream fis = null;
try {
File docFile = new File(pathToFile);
fis = new FileInputStream(docFile.getAbsolutePath());
POIFSFileSystem pfs = new POIFSFileSystem(fis);
HWPFOldDocument doc = new HWPFOldDocument(pfs);
Word6Extractor docExtractor = new Word6Extractor(doc);
String fileContent = "";
String[] paragraphes = docExtractor.getParagraphText();
for (String paragraph : paragraphes) {