import java.io.BufferedReader;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
public class Test {
public static void main(String[] args) {
System.out.println("=begin=");
try {
FileReader fReader = new FileReader(new File("productNameMap.properties"));
BufferedReader bufReader = new BufferedReader(fReader);
String line = null;
while((line=bufReader.readLine()) != null) {
System.out.println(line);
}
bufReader.close();
} catch (FileNotFoundException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
}
}
}
FileReader & BufferedReader
最新推荐文章于 2024-07-24 18:51:13 发布