Difference between revisions of "IO (API)"

From ComputerCraft Wiki
Jump to: navigation, search
Line 9: Line 9:
 
* file:read(...) - Doesn't seem to exist in 1.43.  
 
* file:read(...) - Doesn't seem to exist in 1.43.  
  
If any functions don't exist try the [[Fs.open]] API instead.
+
If any functions don't exist try the [[Fs]] API instead.
 
[[Category:APIs]]
 
[[Category:APIs]]

Revision as of 18:18, 9 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.

If any functions don't exist try the Fs API instead.