Difference between revisions of "IO (API)"

From ComputerCraft Wiki
Jump to: navigation, search
(Forgot a number! Updated for 1.55)
m (http://www.computercraft.info/forums2/index.php?/topic/24122-function-and-yielding/page__view__findpost__p__227406)
Line 4: Line 4:
  
 
* io.open: Modes “a+”, “r+”, and “w+” are not supported.
 
* io.open: Modes “a+”, “r+”, and “w+” are not supported.
 +
* io.write: Does not accept multiple arguments.
 
* io.popen: Doesn’t exist.
 
* io.popen: Doesn’t exist.
 
* io.read: Only allows format string “*l”.
 
* io.read: Only allows format string “*l”.

Revision as of 15:07, 24 July 2015

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 as of ComputerCraft 1.55:

  • io.open: Modes “a+”, “r+”, and “w+” are not supported.
  • io.write: Does not accept multiple arguments.
  • io.popen: Doesn’t exist.
  • io.read: Only allows format string “*l”.
  • io.tmpfile: Doesn’t exist.
  • file:read: Doesn’t support format string “*n” or a character count.
  • file:seek: Doesn’t exist.
  • file:setvbuf: Doesn’t exist.

All of the capabilities in this API are also available in the Fs API, along with some other functions not directly related to reading and writing individual files.