ComputerCraft Archive

another test

computer utility Vexatos github

Description

My Computercraft program collection

Installation

Copy one of these commands into your ComputerCraft terminal:

wget:wget https://raw.githubusercontent.com/Vexatos/ComputerCraft-Programs/master/Other/MattMc/Security/testPrograms/another_test.lua another_test
Archive:wget https://cc.shobie.xyz/cc/get/gh-Vexatos-ComputerCraft-Programs-other-mattmc-security-testprograms-another-tes another_test
Quick Install: wget https://cc.shobie.xyz/cc/get/gh-Vexatos-ComputerCraft-Programs-other-mattmc-security-testprograms-another-tes another test

Usage

Run: another_test

Tags

none

Source

View Original Source

Code Preview

function load(permfile)
file = fs.open(permfile,"r")
data = file.readAll()
file.close()
return textutils.unserialize(data)
end
 
tbl = load("perms")
for i,j in pairs(tbl) do
print(i.." has permission level "..j)
end