Module pl.stringio

reading and writing strings using Lua IO

Functions

create () create a file object which can be used to construct a string.
open (s) create a file object for reading from a given string.


Functions

create ()
create a file object which can be used to construct a string. The resulting file object will have an extra value() method for retrieving the string value.

Usage:

    f = create(); f:write('hello, dolly\n'); print(f:value())
open (s)
create a file object for reading from a given string.

Parameters:

  • s: The input string.

Valid XHTML 1.0!