Difference between revisions of "IO (API)"

From ComputerCraft Wiki
Jump to: navigation, search
Line 6: Line 6:
 
* io.lines(...) - Doesn't exist either. (NOTE: file:lines() does work, and can be used as a stand-in)
 
* io.lines(...) - Doesn't exist either. (NOTE: file:lines() does work, and can be used as a stand-in)
 
* io.read("*all") - read() does not work with "*all" argument.
 
* io.read("*all") - read() does not work with "*all" argument.
 +
* io.open("FILE_NAME", "a+") - Append+ mode is unsupported.
  
 
[[Category:APIs]]
 
[[Category:APIs]]

Revision as of 14:31, 19 August 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. (NOTE: file:lines() does work, and can be used as a stand-in)
  • io.read("*all") - read() does not work with "*all" argument.
  • io.open("FILE_NAME", "a+") - Append+ mode is unsupported.