读取文件内的内容:
String importFilePath = "D:\\bulkImport\\image";
File file = new File(importFilePath);
if (file.isDirectory()) {
String[] filelist = file.list();
for (int i = 0; i < filelist.length; i++) {
File readfile = new File(importFilePath + "\\" + filelist[i]);
if (!readfile.isDirectory()) {
String imgName = readfile.getName();
}
}