Main Menu

HOME

.Net
ASP
Assembly
C
C++
Delphi
HTML
Java
JavaScript
MySQL
PC interface
Powershell
Perl
PHP
VBScript
Visual Basic
XML

US Job listings




   Misc

   Amazon

   Links

    


save wepage as a file

 

'save a webpage to a file
'add a reference to the Microsoft Internet Transfer Control

Private Sub Command1_Click()
Dim URL() As Byte

'set protocol to HTTP
Inet1.Protocol = icHTTP
Inet1.URL = "http://www.microsoft.com"
' Retrieve the HTML data into a byte array.
URL() = Inet1.OpenUrl(Inet1.URL, icByteArray)
' Create a file for the data.
Open "webpage.htm" For Binary Access Write As #1
Put #1, , URL()
Close #1
End Sub

 

 

 

 

 




   Sponsors
 

   Software
500 Java Tips E-book
PHP editor
PERL editor
Beginning Java
Beginning Visual Basic
Learn VB.net
Learn VB 6
VB and databases
ASP image library
C++ builder programming
C++ fundamentals

   Source Code
Display all available drives(ASP)
List all files in a directory and place them in a select menu(PHP)
SCREENSAVER ACTIVE(VB)
Cookies supported(ASP.net)
perform a DNS query(C Sharp)
Play an MP3 file(VB.net)
Enum example(C++)
hexadecimal to decimal conversion(PHP)
 

    




Copyright © 2003 by programmershelp.co.uk