Retrieve the contents of an html table

I want to retrieve the contents of an html table or file from a remote web page such as
"http://www.yahoo.com"

If it is a text file, I want to download it and save it to somewhere.
My question is how can I locate it if I know its name?

You know there are a lot of links in a web page.

Thanks!
[328 byte] By [zhshqzyc] at [2007-11-20 11:13:50]
# 1 Re: Retrieve the contents of an html table
My question is how can I locate it if I know its name?
Are you saying you know the name of the <table> and you want to retrieve it from a URL?
PeejAvery at 2007-11-9 11:54:02 >
# 2 Re: Retrieve the contents of an html table
Let us look at the example in http://www.yahoo.com/.
It has "Autos","Games", "Maps","Music" etc on the left, by clicking every link
will jump into another page. Assume I can retrieve the data file "a.dat" just by clicking "Maps", my question is if I know the file name is "a.dat" in advance, how can I save the file just by given "http://www.yahoo.com/"?
zhshqzyc at 2007-11-9 11:55:02 >
# 3 Re: Retrieve the contents of an html table
I'm assuming that your "a.dat" file is a hypthetical situation, and I don't fully understand you. Sorry.

The following code would read a file a.dat if it existed on yahoo.com. Is this more or less what you are attempting?

<%
set xmlHTTP = Server.CreateObject("Microsoft.XMLHTTP")
xmlHTTP.open "POST", "http://www.yahoo.com/a.dat", false
xmlHTTP.send

formatdata = xmlHTTP.responseText

Set xmlHTTP = nothing
%>
PeejAvery at 2007-11-9 11:56:03 >