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

How should I go about on this menu?

Started by makerimages, 23 December 2012 - 11:38 PM
makerimages #1
Posted 24 December 2012 - 12:38 AM
Hi, I need some ideas on how to make a really difficult part of a program.

Basically I want to load all files from a folder(last bit of the path comes from a variable in a .txt file ) and display them as a clickable menu.

Can somebody suggest something?
etopsirhc #2
Posted 24 December 2012 - 01:05 AM
well , you could write a loop to check if all posible name premutations of a file name exists within that directory

or use fs.list(path)
remiX #3
Posted 24 December 2012 - 04:07 AM
fs.list(path) will save them into a table, but the menu part - that will be quite difficult