下列代码段打算输出文件f.txt的行数 // missing code goes here int count = 0; String line = x.readLine(); while (line != null) { count++; line = x.readLine(); } System.out.print(count); x.close( ); 以下哪个选项是注释处合适的语句?
A.
BufferedReader x = new BufferedReader(new FileReader(“f.txt“));
B.
FileReader x = new FileReader(new BufferedReader(“f.txt“));
C.
PrintReader x = new PrintReader(new FileReader(“f.txt“));
D.
FileReader x = new FileReader(new PrintReader(“f.txt“));