i am currently referencing any files i use in my code from my Root Directory.
Code:
using (StreamReader stream = new StreamReader(@"c:\map.txt"))
i would now like to move all my files to a folder relative to the project.
I have created a directory in the project folder and updated the code to the following.
Code:
using (StreamReader stream = new StreamReader(@"maps\map.txt"))
but i keep gettings exceptions thrown when trying to debug due to not being able to see the file path.
is there something i should be doing to tell the IDE that these are relative to my project ?
i have looked at other code which appears to do this without any other steps that i can see.
do i need to 'set' a path in the project options ?
thanks