--Setup local tArgs = {...} local program = shell.getRunningProgram() if #tArgs < 2 then print("Usage: "..program.." ") print("The code must not contain the . with more random letters after it.") print("See the forum thread on http://www.computercraft.info/forums2 for more info.") print("Thanks!") else --Variables local fileA = tArgs[2] local http1 = http.get("http://www.hastebin.com/raw/"..tArgs[1]) local http2 = http1.readAll() local file = fs.open(tostring(fileA), "w") --Functions local function clear() term.clear() term.setCursorPos(1,1) end local function main() file.write(http2) file.close() print("Success! Thank you!") return nil end --Execution (very simple) main() end