How to read simple txt file from URL?
Plz help,
I have problem with reading txt file from URL. I tried with File.OpenText:
filetoread = MapPath("http://www.sitename/file.txt")
Dim filestream As StreamReader
filestream = File.OpenText(filetoread)
And when I run it, Error Message comes:
Map paths expected to be virtual
Does anyone knows how to solve this problem?
Thx.
|