Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local internet = require("internet")
- local fs = require("filesystem")
- local url = "https://raw.githubusercontent.com/SirAnatoly/dtaconicGITHUB/refs/heads/main/kek"
- local path = "/home/1.lua" -- куда сохранить файл
- local handle = internet.request(url)
- if handle then
- local file = io.open(path, "w")
- for chunk in handle do
- file:write(chunk)
- end
- file:close()
- print("Файл успешно загружен!")
- else
- print("Ошибка: не удалось подключиться к URL")
- end
Advertisement
Add Comment
Please, Sign In to add comment