list = fs.list("programs")
And them list them in order verically and if there are more than "x", it goes to the next lane, and so...
[QUESTION] [LUA] Tables
Started by anonimo182, Oct 13 2012 12:12 AM
7 replies to this topic
#1
Posted 13 October 2012 - 12:12 AM
How can I list the files that this code throws:
#2
Posted 13 October 2012 - 12:18 AM
Check out the "ls" (or "list", can't recall which name it uses) program included with ComputerCraft. You'll see that it passes that list to one of the textutils functions. The API's wiki page should be able to help you out on which one of them best suits your needs.
#3
Posted 13 October 2012 - 01:36 AM
ok, thanks!
#4
Posted 13 October 2012 - 02:04 AM
It doesn't work!, Please help me with that code!
#5
Posted 13 October 2012 - 05:08 AM
So, you're doing something like this:
And list is returning as a table containing at least one entry?
local list = fs.list("/programs")
textutils.pagedTabulate(list)
And list is returning as a table containing at least one entry?
#6
Posted 13 October 2012 - 04:38 PM
I need the way to do that, so I just need to make that exact code you made?
Lyqyd, on 13 October 2012 - 05:08 AM, said:
So, you're doing something like this:
And list is returning as a table containing at least one entry?
local list = fs.list("/programs")
textutils.pagedTabulate(list)
And list is returning as a table containing at least one entry?
#7
#8
Posted 13 October 2012 - 06:35 PM
I finally solved, thanks!
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users











