读取文件数据
public static String readFileData(String filePath,String key){String fileData = "";Properties p = new Properties();FileInputStream fs = null;try {fs = new FileInputStream(filePath);try {p.load(fs);fileData = p.getProperty(key);} catch (IOException e) {e.printStackTrace();}} catch (FileNotFoundException e) {e.printStackTrace();} return fileData;}?