将文件中的内容转化为数组
TXT文件的内容
88782127,88782542,88781234
String[] extArray=null;
//读取txt文件并解析成数组
String extFilePath = "\\doc\\ext.txt"; //文件路径
String extPath = Struts2Utils.getSession().getServletContext().getRealPath(extFilePath);
File file = new File(extPath);
String extStr=FileUtils.txt2String(file);
if(!"".equals(extStr)){
extArray = extStr.split(",");
}