IO (API)

From ComputerCraft Wiki
Revision as of 12:08, 20 January 2013 by TheOriginalBIT (Talk | contribs) (added some new non-working features)

Jump to: navigation, search

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.
  • io.open("FILE_NAME", "w+") - Write+ mode is unsupported.
  • io.open("FILE_NAME", "r+") - Read+ 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.