Related questions
Streamreader to a relative filepath
I was wondering, if anyone could tell me how to point a StreamReader to a file inside the current working directory of the program.
E.g.: say I have program Prog saved in the directory "C:\ProgDir\". I commit "\ProgDir" …
Getting Original Path from FileStream
Given a System.IO.FileStream object, how can I get the original path to the file it's providing access to?
For example, in the MyStreamHandler() function below, I want to get back the path of the file that created the …
FileStream: used by another process error
I have two different modules that need access to a single file (One will have ReadWrite Access - Other only Read). The file is opened using the following code in one of the modules:
FileStream fs1 = new FileStream(@"D:\post.…