readfrom

LUA

readfrom

readfrom([FILENAME])

When called with a flle name, it opens the named flle, sets _INPUT with its handle and returns this value.Does not close the current input flle. When called without parameters, it closes the _INPUT flle, and restores stdin as the value of _INPUT. On error, it returns nil , plus a string describing the error. If FILENAME starts with a | (pipe character), then input is piped via the C function popen. Not all systems implement pipes.