How to download & save HTML file from WWW

Posted on 1999-07-21
Medium Priority
Last Modified: 2010-05-02
hi all,
   I'm trying to use MS Internet Control 6.0 that come with VB 6 to download HTML doc from WWW. Can anybody tell me how can I save the HTML doc as a file (not a string) after downloading so that I can manipulate it using "Open File" command? thanks

Question by:raymondcmh
  • 2
LVL 10

Expert Comment

ID: 1526388
Sorry if I'm missing the point here, but if you can get it into a string, then just write that string to a file

dim ff%
open "fred.txt" for output as ff
 print #ff, WWWstring
close ff


Accepted Solution

japhar earned 100 total points
ID: 1526389
The above answer will work, if youre looking for formatting however, you will need a rudimentary parser. Something that will insert a newline after a '>', add a tab to the next line for each '<' and remove a tab for each '/>'... It depends on what kind of formatting you need to do.
LVL 10

Expert Comment

ID: 1526390
japhar, I think you must have clicked on 'answer' by accident !!!

Author Comment

ID: 1526391
japhar, can u further explain the rudimentary parser, please?
btw, thank japhar & smegghead

Featured Post

Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

600 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question