Advertisement
Plazter

Might be this

Aug 22nd, 2017
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.31 KB | None | 0 0
  1. c = require("component")
  2. gpu = c.gpu
  3. term = require("term")
  4. fs = require("filesystem")
  5.  
  6. todo=nil
  7. todo={}
  8.  
  9. function getList()
  10.     list = fs.open("home/todolist.txt", "r")
  11.         for k,v in pairs(list) do
  12.             table.insert(v, todo)
  13.         end
  14.     list:close()
  15. end
  16.  
  17. getList()
  18. for k,v in pairs(todo) do
  19.     print(k..": "..v)
  20. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement