local files = fs.list("/")
print(files)
it says table: and then a random amount of numbers / lettershow do i make it print the the contents of directory / and not the numbers/letters
Posted 26 October 2012 - 08:52 PM
local files = fs.list("/")
print(files)
it says table: and then a random amount of numbers / lettersPosted 26 October 2012 - 09:06 PM
for _, file in pairs(files) do print(file) end
Posted 26 October 2012 - 09:08 PM
Posted 26 October 2012 - 09:14 PM
Posted 26 October 2012 - 10:14 PM
for i = 1, #files do -- #files returns the length of the table "files" print(files[i]) end
Posted 26 October 2012 - 10:16 PM
Posted 26 October 2012 - 11:49 PM
0 members, 3 guests, 0 anonymous users