Im not very good at vb so please be gentle with me 
I have create a web browser and got most of it working, I just need to create a hidden history of the site you have been to.
I was just trying to do a simple .txt with all the site in it but I cant get it to work
This is what I was trying but it will only copy the text from the url and then over write it when I go to the next page.
Any one thing see what im going wrong?
Or think of a better way to do it ?

I have create a web browser and got most of it working, I just need to create a hidden history of the site you have been to.
I was just trying to do a simple .txt with all the site in it but I cant get it to work

Dim f As Long
Dim listindex As Integer
f = FreeFile
Open "F:\Visual Basic\Browser - CW\history.txt" For Output As f
Write #f, URLAddress
Close #f
This is what I was trying but it will only copy the text from the url and then over write it when I go to the next page.
Any one thing see what im going wrong?
Or think of a better way to do it ?