249 posts
Location
In the universe
Posted 13 October 2012 - 01:12 AM
How can I list the files that this code throws:
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…
8543 posts
Posted 13 October 2012 - 01: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.
249 posts
Location
In the universe
Posted 13 October 2012 - 02:36 AM
ok, thanks!
249 posts
Location
In the universe
Posted 13 October 2012 - 03:04 AM
It doesn't work!, Please help me with that code!
8543 posts
Posted 13 October 2012 - 06:08 AM
So, you're doing something like this:
local list = fs.list("/programs")
textutils.pagedTabulate(list)
And list is returning as a table containing at least one entry?
249 posts
Location
In the universe
Posted 13 October 2012 - 05:38 PM
I need the way to do that, so I just need to make that exact code you made?
So, you're doing something like this:
local list = fs.list("/programs")
textutils.pagedTabulate(list)
And list is returning as a table containing at least one entry?
8543 posts
Posted 13 October 2012 - 06:23 PM
I need the way to do that, so I just need to make that exact code you made?
So, you're doing something like this:
local list = fs.list("/programs")
textutils.pagedTabulate(list)
And list is returning as a table containing at least one entry?
Yes. But if you didn't know what to do, why did you say it didn't work in your last post?
249 posts
Location
In the universe
Posted 13 October 2012 - 07:35 PM
I finally solved, thanks!