Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
file downloader
BillBodkin
Dec 25th, 2016
161
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
Lua
0.21 KB
| None
|
0
0
raw
download
clone
embed
print
report
function
download
(
url
,
file
)
local
content
=
http
.
get
(
url
)
.
readAll
(
)
if
not
content
then
error
(
"Could not connect to website"
)
end
f
=
fs
.
open
(
file
,
"w"
)
f
.
write
(
content
)
f
.
close
(
)
end
Add Comment
Please,
Sign In
to add comment
Public Pastes
🤑 G2A.com Free Gift Card Guide May 2024 FIX 🎁
GetText | 1 min ago | 0.38 KB
Zhegalkin indices of the 32199 female 4-ary B...
Python | 2 min ago | 209.91 KB
BasicButtons
Game Maker | 2 min ago | 1.38 KB
Untitled
C++ | 5 min ago | 0.26 KB
Untitled
C++ | 6 min ago | 0.26 KB
Untitled
HTML | 6 min ago | 0.31 KB
Untitled
C++ | 9 min ago | 0.17 KB
Untitled
C++ | 14 min ago | 0.26 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the
Cookies Policy
.
OK, I Understand
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!