Advertisement
Guest User

test

a guest
Mar 24th, 2018
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.47 KB | None | 0 0
  1. -- * Account System Test *
  2. --local tArgs = {...}
  3. --local userName = tArgs[1]
  4. --local password = tArgs[2]
  5.  
  6. local userName = "wes"
  7. local password = "succ"
  8.  
  9. if fs.exists(userName) then
  10.     local file = fs.open (userName, "r")
  11.     local fileData = {}
  12.     local line = file.readLine()
  13.     repeat
  14.         table.insert(fileData, line)
  15.         line = file.readLine()
  16.     until line == nil
  17.     file.close()
  18.    
  19.     aPassword = fileData[1]
  20.     aBalance = fileData[2]
  21. end
  22.  
  23. print (aPassword)
  24. print (aBalance)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement