java读取txt配置文件_txt配置文件的读取
java读取txt配置⽂件_txt配置⽂件的读取package cn.file;死神vs火影连招
import java.io.BufferedReader;
import java.io.FileInputStream;
import java.io.FileReader;
import java.io.IOException;
import java.io.InputStreamReader;
手机怎么连接wifi/**
* 逐⾏读取配置⽂件(.txt类型)
* @author LYWU
*
*/
public class ReadConfig {
public static final void readF1(String filePath) throws IOException {
证婚人证婚词BufferedReader br = new BufferedReader(new InputStreamReader(
new FileInputStream(filePath)));
for (String line = br.readLine(); line != null; line = br.readLine()) {
System.out.println(line);
}
br.close();
}
yy公会名字public static final void readF2(String filePath) throws IOException {
FileReader fr = new FileReader(filePath);
BufferedReader bufferedreader = new BufferedReader(fr);
String instring;
while ((instring = adLine().trim()) != null) {
if (0 != instring.length()) {
System.out.println(instring);香水榜
}
信仰 歌词
}
fr.close();
}
}

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。