http.Get

[LUA]
myLabel:SetText(http.Get(“http://andlit.com/jay.txt”))
[/LUA]

Can someone tell me how I would do this correctly please?

What I’m trying to do is get the text that is from the URL www.andlit.com/jay.txt and print it on a derma.

http.Get has a callback function, you supply it as the third argument in the function eg.

[lua]
http.Get(“http://andlit.com/jay.txt”, “”, function(contents)
print(contents)
end)
[/lua]

Thanks I understand now.

Got it working :wink: