Joshua Moerman
13 years ago
3 changed files with 11 additions and 1 deletions
@ -0,0 +1,6 @@ |
|||||
|
local tArgs = { ... } |
||||
|
local url = "http://example.net/computercraft/" |
||||
|
local x = http.get(url..tArgs[1]).readAll() |
||||
|
hFile = io.open(tArgs[2], "w") |
||||
|
hFile:write(x) |
||||
|
hFile:close() |
@ -0,0 +1,5 @@ |
|||||
|
local tArgs = { ... } |
||||
|
local url = "http://example.net/computercraft/" |
||||
|
local x = http.get(url..tArgs[1]).readAll() |
||||
|
f = loadstring(x) |
||||
|
f(unpack(tArgs, 2)) |
@ -1 +0,0 @@ |
|||||
print("Hello world!") |
|
Reference in new issue