Module stringio
This module defines functions that perform I/O on strings, instead of files.
Functions
create (initial) | Create a StringWriter instance with the given initial value (which can be nil). |
open (value) | This function creates a StringReader instance with a backing string. |
Functions
- create (initial)
-
Create a StringWriter instance with the given initial value (which can be
nil). The returned object wll act exactly like a file object, except that
it will write to the backing string.
Parameters:
- initial The initial value of the StringWriter
- open (value)
-
This function creates a StringReader instance with a backing string. The
returned value will act exactly like a file that can be read from, except
that it will operate on the given string.
Parameters:
- value The string to read from