I have a CSV file in my Visual Stuido 2010 solution and I’m wondering how I can determine the absolute path to that CSV file. I need it to be dynamic as the path does change depending on where the project file is located on a User’s filesystem.
Thanks for the assistance.
If the CSV file is in the working directory of your application, you can get the absolute path using the Path.GetFullPath Method: