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