我试图逐行读取txt文件,但是它将整个文件吸收到第一行。它是我的代码,还是文件本身的cr / lf编码?
try {
BufferedReader inputReader = new BufferedReader(new InputStreamReader(openFileInput("file")));
String inputString;
try {
while ((inputString = inputReader.readLine()) != null) {
...