I have a text file that I need to retrieve to populate a web page. My first instinct was to use System.IO.File to open and read the file contents.
then it occured to me I could also use a web request (since the file lives on the webserver). I'm wondering which one is a better choice.
I figure using the file system would be faster, since I would imagine that eventually, the webrequest has to access the file anyway...
using the file system is easier to code as well, since all I have to do is open the file and read its contents.
any thoughts?
thanks!