This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
Andybish's profile picture

[Solved]Tables: WTF?!

Started by Andybish, 29 August 2012 - 06:27 PM
Andybish #1
Posted 29 August 2012 - 08:27 PM
1: How do you print the contents of a table?
2: The "instructions" in the help yourself topic on how to print a table don't work, I get a ") expected" error.
3: Where does it expect a ")"?
4: Or, forget those, how do I get a file from a computer to a turtle on top of it?


Never mind, found it. Thanks anyway.
sjele #2
Posted 29 August 2012 - 08:31 PM
for i, v in pairs (tablename) do
print (tablename)
end

If that dosent work try print(tablename[v])