diff --git a/README.md b/README.md index ece342f..8230b3b 100644 --- a/README.md +++ b/README.md @@ -1409,8 +1409,8 @@ Open ```python = .read(size=-1) # Reads 'size' chars/bytes or until EOF. - = .readline() # Returns a line. - = .readlines() # Returns a list of lines. + = .readline() # Returns a line or empty string on EOF. + = .readlines() # Returns a list of lines or empty list. = next() # Returns a line using buffer. Do not mix. ``` diff --git a/index.html b/index.html index c4972a0..36fd517 100644 --- a/index.html +++ b/index.html @@ -1285,8 +1285,8 @@ value = args.<name> <bin_file>.seek(±offset, <anchor>) # Anchor: 0 start, 1 current pos., 2 end.
<str/bytes> = <file>.read(size=-1)  # Reads 'size' chars/bytes or until EOF.
-<str/bytes> = <file>.readline()     # Returns a line.
-<list>      = <file>.readlines()    # Returns a list of lines.
+<str/bytes> = <file>.readline()     # Returns a line or empty string on EOF.
+<list>      = <file>.readlines()    # Returns a list of lines or empty list.
 <str/bytes> = next(<file>)          # Returns a line using buffer. Do not mix.
 
<file>.write(<str/bytes>)           # Writes a string or bytes object.