I am reading a .txt file from within my WS by setting the system.io.directory.SetCurrentDirectory method and then reading it (filestream). On LOCALHOST, I am able to set the path with no problems. I can also move the file to the directory easily.
I would like to use the same method on the Web Server. I need to be able to FTP the file to my virtual web directory, then be able to read it. However, I don’t know which path to set ? Getting the active directory without setting it gives me a directory which I am not able to use. Ideally, I would not hardcode the path, but use www.mysite.com\root\data (wishful thinking).
Any help gratefully received.