Advertisement
guitarplayer616

record

Jun 23rd, 2015
314
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.21 KB | None | 0 0
  1. local h = fs.open("records","w")
  2.  
  3. function record()
  4.     while true do
  5.         e = {os.pullEvent()}
  6.         if e[1] == "char" then
  7.             print(e[2])
  8.             h.write(e[2])
  9.             h.flush()
  10.         end
  11.     end
  12. end
  13.  
  14.  
  15. record(),
  16. h.close()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement