Difference between revisions of "IO (API)"
From ComputerCraft Wiki
(Added non-existent feature.) |
|||
Line 7: | Line 7: | ||
* io.read("*all") - read() does not work with "*all" argument; use "*a" instead. | * io.read("*all") - read() does not work with "*all" argument; use "*a" instead. | ||
* io.open("FILE_NAME", "a+") - Append+ mode is unsupported. | * io.open("FILE_NAME", "a+") - Append+ mode is unsupported. | ||
− | * file:read(...) - Doesn't seem to exist in 1.43. | + | * file:read(...) - Doesn't seem to exist in 1.43. |
+ | * file:read(number) - Doesn't exist as of 1.46. | ||
If any functions don't exist try the [[Fs]] API instead. | If any functions don't exist try the [[Fs]] API instead. | ||
[[Category:APIs]] | [[Category:APIs]] |
Revision as of 21:54, 30 October 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.
- file:read(...) - Doesn't seem to exist in 1.43.
- file:read(number) - Doesn't exist as of 1.46.
If any functions don't exist try the Fs API instead.