Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local args = {...}
- local url = args[1]
- local fileName = args[2]
- local response = http.get(url)
- local content = response.readAll()
- response.close()
- local path = shell.resolve(fileName)
- local file = fs.open(path, "w")
- file.write(content)
- file.close()
- print("Finished")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement