Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- * Account System Test *
- --local tArgs = {...}
- --local userName = tArgs[1]
- --local password = tArgs[2]
- local userName = "wes"
- local password = "succ"
- if fs.exists(userName) then
- local file = fs.open (userName, "r")
- local fileData = {}
- local line = file.readLine()
- repeat
- table.insert(fileData, line)
- line = file.readLine()
- until line == nil
- file.close()
- aPassword = fileData[1]
- aBalance = fileData[2]
- end
- print (aPassword)
- print (aBalance)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement