Posted 25 October 2015 - 07:11 AM
So basically i want to have program, that displays all content from root ("/") folder on computer. But i want it to not display rom and startup. I got stuck at this code. What i want to do, is for loop.
(accesed this way):
for i = 1, #list do
<code>
end
In this loop i want to check if next and next value in list table(accesed this way):
local list = fs.list("/")
Is the same as "rom" or "startup"
if list[i] == "startup" or list[i] == "rom" then
<CODE>
end
I want to remove this value from table. Can anyone help me with it?