blob: fdf973f5e1c6594bb9c37b045a8c34be0bb223b9 [file] [log] [blame]
Guido van Rossumcda3d7d1997-03-03 16:01:21 +00001\section{Standard Module \sectcode{StringIO}}
2
3\stmodindex{StringIO}
4
5This module implements a file-like class, \code{StringIO},
6that read and write a string buffer (also known as {\em memory
7files}). See the description on file objects for operations.
8
9When a \code{StringIO} object is created, it can be initialized
10to an existing string by passing the string to the constructor.
11If no string is given, the \code{StringIO} will start empty.
12
13The method \code{getvalue()} can be called at any time to return the
14contents of the entire ``file'' at any time.