I am trying to write a program that the user launches with at least one argument. The problem is that there is a file that is in the same directory as the exe that the program opens to get some data. When the program is launched with an argument, when it tried to load the file in the same directory as the exe it is using the directory of the args.
This is what I am using to load the file in the same directory as the exe.
Code:StreamReader sr = new StreamReader("Table.tbl");




Reply With Quote