Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function printHelp()
- print("[1] Add item")
- print("[2] Delete item")
- print("[3] List all items")
- print("[4] Change quantity of item")
- end
- function getConfig()
- local lines = {}
- local h = fs.open("./", "config")
- for line in h.readLine do
- lines[#lines+1] = line
- end
- h.close()
- return lines
- end
- printHelp()
- local action = read()
- if action == "3" then
- local config = getConfig()
- print(config)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement