Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function getTableUsersByUrl(url)
- local n_file, bool, users = os.getenv('TEMP') .. '\\' .. os.time(), false, {}
- downloadUrlToFile(url, n_file)
- while not doesFileExist(n_file) do wait(0) end
- local file = io.open(n_file, 'r')
- if file then
- for w in file:lines() do
- local n, d = w:match('(.*): (.*)')
- users[#users+1] = { name = n, date = d }
- end
- file:close()
- os.remove(n_file)
- end
- return bool, users
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement