diff --git a/files.html b/files.html index bf69ab2..f4e2ff5 100644 --- a/files.html +++ b/files.html @@ -358,32 +358,32 @@ b'\xff\xd8\xff'
You know, like a real file object. The difference is that you’re not limiting yourself to real files. The input source that’s being “read” could be anything: a web page, a string in memory, even the output of another program. As long as your functions take a file-like object and simply call the object’s read() method, you can handle any input source that acts like a file, without specific code to handle each kind of input.
-
+
read() method “reads” the entire “file,” which in the case of a StringIO object simply returns the original string.
+read() method again returns an empty string.
+seek() method of the StringIO object.
+read() method.
+