Saturday, 7 September 2013

Want to find path of a file from the application folder?

Want to find path of a file from the application folder?

I want to find the path of the file or to access that file which is lying
with the .xaml file and the .cs file.
I have my file name.tx in
C:\Users\Itsme\Documents\Visual Studio 2010\Projects\tsa\tsa\name.txt
Now i need to access this file using StreamReader. How could i access this
file without providing the complete path.
Thanks.

No comments:

Post a Comment