Difference between revisions of "IO (API)"

From ComputerCraft Wiki
Jump to: navigation, search
(I tested file:lines(), and it keeps complaining about trying to call nil, so I'm removing this.)
Line 4: Line 4:
  
 
* file:seek(...) - Doesn't exist.
 
* 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.lines(...) - Doesn't exist either.
 +
* file:lines() - Doesn't exist.
 
* 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.
 
* io.open("FILE_NAME", "a+") - Append+ mode is unsupported.
  
 
[[Category:APIs]]
 
[[Category:APIs]]

Revision as of 23:45, 15 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.
  • file:lines() - Doesn't exist.
  • io.read("*all") - read() does not work with "*all" argument.
  • io.open("FILE_NAME", "a+") - Append+ mode is unsupported.