How to read file from the installation folder of app using c#?
Posted
by user144842
on Stack Overflow
See other posts from Stack Overflow
or by user144842
Published on 2010-04-28T15:19:18Z
Indexed on
2010/04/28
15:23 UTC
Read the original article
Hit count: 148
Hi
I am reading a file using File.ReadAllText("filename.txt"). This file is located in very same folder where the .exe file is located (c:/program files/installation folder). But windows app looks into System32 folder for this file by default.
**I don't want to hard code the path of the file.
© Stack Overflow or respective owner