Welcome to HBH! If you have tried to register and didn't get a verification email, please using the following link to resend the verification email.
downloading files in c++
In python this would do it.
#!/usr/bin/python
import urllib
url=raw_input('File to download: '
a=urllib.urlopen(url).read()
save=raw_input('Save as... ')
b=open(save, 'w')
b.write(a)
b.close()
a.close()
I expect its the same, basically open a webpage and read it, will do html just as it does .exe so long as .exe is saved as .exe and html as .html you'll be fine.
wolfmankurd wrote: In python this would do it.
#!/usr/bin/python
import urllib
url=raw_input('File to download: '
a=urllib.urlopen(url).read()
save=raw_input('Save as... ')
b=open(save, 'w')
b.write(a)
b.close()
a.close()
I expect its the same, basically open a webpage and read it, will do html just as it does .exe so long as .exe is saved as .exe and html as .html you'll be fine.
Actually, it's the same, but with a lot more coding. For C++, you need to learn sockets, and I can vouch for Beej's guide. It's quite good.