|
|
|
close(...)
close(): explicitly release resources held. |
|
|
|
flush(...)
flush(): does nothing. |
|
|
|
getvalue(use_pos=...)
Get the string value. |
|
|
|
isatty(...)
isatty(): always returns 0 |
|
|
the next value, or raise StopIteration
|
|
|
read(s=...)
Read s characters, or the rest of the string |
|
|
|
|
|
readlines()
Read all lines |
|
|
|
reset()
Reset the file position to the beginning |
|
|
|
seek(position)
set the current position seek(position, mode) -- mode 0: absolute; 1:
relative; 2: relative to EOF |
|
|
|
tell()
get the current position. |
|
|
|
truncate(...)
truncate(): truncate the file at the current position. |
|
|