Getting the text from a file at a URL, then using html:SetHTML()?

Hey guys, I’m trying to get the text from a URL, the URL is a file server, and it’s a text file.

I want to get this text, and then use html:SetHTML(The text I got from the txt file), where html is a vgui HTML panel for a derma panel.

Does anyone know how to do this?

I tried this, but obviously it won’t work:


[editline]3rd June 2013[/editline]

It’s 3:34 AM right now and apparently I’m braindead… nevermind…

I set the myfile.txt (the one with HTML code in it… to myfile.html) and just used OpenURL.