Hi everyone,
I'm just starting out with OpenComputers. I have no problem with the coding, but there are things that don't work where I think they should work:
(1) I'm trying to write a component list to a text file, since the number of components is too large to fit on a screen. I've written this code:
local co=require("component") local fs=require("filesystem") local f=fs.open("textfile.txt","w") --print(f) (commented test line) for k,v in co.list() do print(k,v) print(f.write(k.." "..v.."\n\r")) end end
f.close()
The file does get opened with the fs.open s