tags:

views:

406

answers:

3

In vb.net (using vs2005), I'd like to see if www.domain.com/myfile.txt exists.

Thanks in advance!

A: 

The easiest way to access an internet URL is via the System.Net.WebClient class.

Joel Coehoorn
+2  A: 

Assuming you can browse to this file, you could use the HTTPWebRequest class and either grab the file and check it or get a 404 error.

JP Alioto
A: 

Thanks guys, got it with HTTPWebReq

Josh streit