Hey!
No doubt this is a total noob
question, but here goes:
I'm writing a very basic console application (vb.net 3.5) (just for learning purposes) that reads lines from a text file (in the Solution Items folder) and then displays them in console window.
So far, so good; everything works fine.
The only problem is that at the moment, unless I use a complete path to my .txt file (e.g. "C:\Users\Me\Documents\Visual Studio 2008\Projects\MyTest\TestInputFile.txt"), I get a FileNotFoundException.
Obviously, if the application was published and made available to users via an installer or whatever, the input file would no longer be in this location!
Can anybody tell me the best way to reference the file so that my application will be able to read from it at all times?
No doubt this is a total noob

I'm writing a very basic console application (vb.net 3.5) (just for learning purposes) that reads lines from a text file (in the Solution Items folder) and then displays them in console window.
So far, so good; everything works fine.
The only problem is that at the moment, unless I use a complete path to my .txt file (e.g. "C:\Users\Me\Documents\Visual Studio 2008\Projects\MyTest\TestInputFile.txt"), I get a FileNotFoundException.
Obviously, if the application was published and made available to users via an installer or whatever, the input file would no longer be in this location!
Can anybody tell me the best way to reference the file so that my application will be able to read from it at all times?