编译器是否可以最大输出?

Is it possible for the compiler to have a maximum on output?

[原文][1]

[我在服务器 Class 中打印出来的结果][2]

在我的服务器中 Class 我想读取文本文件的每一行,包括空行,但它从文件的中间开始。我相信这与 ecplise 最大输出有关。我知道,因为我从每一行得到了正确的字节输出。

您需要某种循环来遍历 BufferedReader。如果 readLine() returns 为 null,则您位于流的末尾,可以跳出循环。

参见 API BufferedReader

使用循环遍历整个文件:

while ((line = buffer.readLine()) != null)) {
    pr.println(line);
}