浏览代码

Clear up eof_reached function, fixes #16919

Juan Linietsky 6 年之前
父节点
当前提交
1aa7e22b67
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      doc/classes/File.xml

+ 1 - 1
doc/classes/File.xml

@@ -38,7 +38,7 @@
 			<return type="bool">
 			<return type="bool">
 			</return>
 			</return>
 			<description>
 			<description>
-				Returns [code]true[/code] if the file cursor has reached the end of the file.
+				Returns [code]true[/code] if the file cursor has read past the end of the file. Note that this function will still return [code]false[/code] while at the end of the file and only activates when reading past it. This can be confusing but it conforms to how low level file access works in all operating systems. There is always [method get_len] and [method get_position] to implement a custom logic.
 			</description>
 			</description>
 		</method>
 		</method>
 		<method name="file_exists" qualifiers="const">
 		<method name="file_exists" qualifiers="const">