How to Read texfile etch.. from Application folder where Application is Installed?

Posted by Crimsonland on Stack Overflow See other posts from Stack Overflow or by Crimsonland
Published on 2011-01-05T03:56:14Z Indexed on 2011/01/05 4:53 UTC
Read the original article Hit count: 183

I Added textfile on my Application Folder where the application is also located.

I having a problem where to locate and read the content of the texfile regarding what location the users specify the application to be installed.

Example:

CASE 1: If Application Installed on C

Get the path of: C:\Textfile.txt

CASE 2:If Application Installed on Program files

Get the path of C:\Program Files\Default Company Name\Textfile.Text

Thanks in Regards.

© Stack Overflow or respective owner

Related posts about c#

Related posts about visual-studio-2008