File file = new File("F://servicepicturreurl.txt");
InputStreamReader isr = new InputStreamReader(new FileInputStream(file), "UTF-8");
BufferedReader read = new BufferedReader(isr);
StringBuffer sbLine = new StringBuffer();
String line = null;
while ((line = read.readLine()) != null) {
//line 取得txt数据
}
read.close();
java读取txt
最新推荐文章于 2022-10-14 09:17:01 发布