How to read doc and docx file in java with POI api
问题 I am trying to read doc and docx files. here is the code: static String distination="E:\\ static String docFileName="Requirements.docx"; public static void main(String[] args) throws FileNotFoundException, IOException { // TODO code application logic here ReadFile rf= new ReadFile(); rf.ReadFileParagraph(distination+docFileName); } public void ReadFileParagraph(String path) throws FileNotFoundException, IOException { FileInputStream fis; File file = new File(path); fis=new FileInputStream