In my project I created a Text file and placed it inside the folder Resources. Is there any way to access that file?
I have a WPF control that access this file and I can't get it to work.
I've already tried to go by project path
StreamReader myFile = new StreamReader("C:\ProjectFolder\ProjectName\Resources\file.txt")
and this solution there's a conflict.
The first solution let's me, in code mode work normally, but at runtime the app crashes because it can't find the path. Says the path to (Project)\bin\debug\file.txt does not exist. On the other hand the second solution let's me run/degug the app perfectly but when I try to edit the xaml Design of the control that hosts the code, it tells me that cannot find full path to file.
Can anyone help? Thanks a lot