This thinBasic script will download default thinBasic web site page locally.
The same can be used for whatever file from internet. Just change the url.

[code=thinbasic] uses "INet"

dim ret as number

ret = INET_URLDownLoad("http://www.thinbasic.com", APP_SOURCEPATH + "Home.html")

IF ret <> %TRUE THEN
msgbox(0, "Error: " + ret)
END IF
[/code]