// 指定编码读取文件路径创建缓冲输入流
BufferedReader br = new BufferedReader(new InputStreamReader(new FileInputStream(inputFilePath), "utf-8"));
// 根据文件路径创建缓冲输入流
BufferedReader in = new BufferedReader(new FileReader(inputFilePath));
// 根据文件路径创建缓冲输出流
BufferedWriter out = new BufferedWriter(new FileWriter(outputFilePath));
//回车换行
static final String LINE_SEPARATOR = System.getProperty("line.separator"); // /r/n 回车换行
String filePath = BuildBPXML.class.getResource("").getPath()+"test.properties"; // 文件路径 //output ==> /D:/workspace_BS/corporbank/WebContent/WEB-INF/classes/test/test.properties