很多工具将这些字节解释为文件尾或者其他某种特殊的分界符,造成不希望的、未曾预料到的、常常是不愉快的结果。
More than a few tools interpret these bytes as end-of-file or some other special delimiter, with unexpected, unanticipated, and generally unpleasant effects.
下面的示例显示如何读到文件尾。
The following example shows how to read to the end of the file.
这避免了在读取超过文件尾时引发的异常。
This avoids the exception that is thrown if you read past the end of the file.
应用推荐