Hi,

I have function named GetHTML which goes out on the web and retrieves an html file. I then write that file to a text file with the following:

Open "c:\html.txt" As Output #1
Print #1, GetHTML
Close #1

The problem is that the HTML page that I'm retriveing is extremely large. So much so that it gives me an out of memory error.

My question is: Is there a way in which I can have VB write the results directly to the text file instead of first reading it into memory and then writing it? I figure that by doing that, it wouldn't give me a memory problem because no data would be held in memory. Hopefully that's not a dumb question..

Any help or advice would be appreciated..

Dan