File file = new File("k:/test/txt/okenglish.cp500.txt");
try {
String content = new Tika().parseToString(file);
System.out.println("The Content: " + content);
}catch (Exception e) {
e.printStackTrace();
}
File file = new File("k:/test/txt/okenglish.cp500.txt");
try {
String content = new Tika().parseToString(file);
System.out.println("The Content: " + content);
}catch (Exception e) {
e.printStackTrace();
}
本文标题:java 获取文件内容
本文链接:https://www.haomeiwen.com/subject/omvuvttx.html
网友评论