
-----------------------------------
skootles
Thu Jan 26, 2006 11:35 am

Downloading a file from the internet
-----------------------------------
Hey, I'm just wondering if it's possible in turing to download a file from the internet? I wanted to have a section in my program that would download the latest update when you click a button, but I haven't had any experience with Turing and the internet..  so is it possible?

-----------------------------------
neufelni
Thu Jan 26, 2006 11:59 am


-----------------------------------
if not Sys.Exec ("http://www.google.com"/*put any website here */) then
    put "Error"
end if
[/quote]

-----------------------------------
skootles
Thu Jan 26, 2006 12:07 pm


-----------------------------------
Thanks  :D , that will work, but I'm just wondering how would I use that to download .txt and image files too? Because when I just use that, they open up in IE.

-----------------------------------
Tony
Thu Jan 26, 2006 12:58 pm


-----------------------------------
You'd have to use the Net. module like [url=http://www.compsci.ca/v2/viewtopic.php?t=10709]over here

-----------------------------------
skootles
Thu Jan 26, 2006 1:53 pm


-----------------------------------
Alrighty, well I have this, which should download a google image (just for testing purposes):
var url : string := "http://mail.google.com/mail/help/images/logo.gif"

var count : int := 0
var progress : int
var netStream : int
var net_line : char

netStream := Net.OpenURLConnection (url)

if netStream 