Difference between revisions of "IO (API)"
From ComputerCraft Wiki
(I tested file:lines(), and it keeps complaining about trying to call nil, so I'm removing this.) |
|||
Line 5: | Line 5: | ||
* file:seek(...) - Doesn't exist. | * file:seek(...) - Doesn't exist. | ||
* io.lines(...) - Doesn't exist either. | * io.lines(...) - Doesn't exist either. | ||
− | + | * io.read("*all") - read() does not work with "*all" argument; use "*a" instead. | |
− | * io.read("*all") - read() does not work with "*all" argument. | + | |
* io.open("FILE_NAME", "a+") - Append+ mode is unsupported. | * io.open("FILE_NAME", "a+") - Append+ mode is unsupported. | ||
[[Category:APIs]] | [[Category:APIs]] |
Revision as of 20:22, 30 September 2012
IO is a reimplementation of the default Lua input / output API defined here, with some features trimmed. Most features should work. If you find a non-working feature, please list it here.
List of non-working features from IO:
- file:seek(...) - Doesn't exist.
- io.lines(...) - Doesn't exist either.
- io.read("*all") - read() does not work with "*all" argument; use "*a" instead.
- io.open("FILE_NAME", "a+") - Append+ mode is unsupported.