Difference between revisions of "IO (API)"

From ComputerCraft Wiki
Jump to: navigation, search
m
Line 10: Line 10:
 
io.write using "wb"
 
io.write using "wb"
 
Line 97 it expects a number and gets a string
 
Line 97 it expects a number and gets a string
For reference I am using this http://lua-users.org/wiki/SaveTableToFile with only moifications to make it run as an api
+
For reference I am using this http://lua-users.org/wiki/SaveTableToFile with only modifications to make it run as an api.
 
It is the very first file:write in the save function
 
It is the very first file:write in the save function
 
file:write("return {"..charE)
 
file:write("return {"..charE)
  
 
[[Category:APIs]]
 
[[Category:APIs]]

Revision as of 18:28, 20 March 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.


I hope this is the right place to add this. io.write using "wb" Line 97 it expects a number and gets a string For reference I am using this http://lua-users.org/wiki/SaveTableToFile with only modifications to make it run as an api. It is the very first file:write in the save function file:write("return {"..charE)