![]() | |
![]() |
| | Thread Tools | Search this Thread | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I am trying to load a text file but i could not find the file when i debug the application. the text file "a.txt" is created in the same folder where my application (exe) is launched. Assembly asm = Assembly.GetExecutingAssembly(); MyFile = Path.GetDirectoryName(asm.GetName().CodeBase) + "\ \a.txt"; MyFile is return "\\Program Files\\Application1\\a.txt"; so where is \\Program Files\\ on my location windows machine (its for debug, not in the real system). How do i setup path for testing on my local system. Thanks for your help. Achu. |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |