Q:

C#: Accessing files added to project folder

how can i access files I've included in the project folder in Visual C# Windows Application... I've created a folder in the solution and I've added some files. Now, My problem is how to access them?
In ASP.NET C# there is ResolveUrl / Url.Content... etc... In Visual C#? what should i do?

A:

In the properties of those files you could set Copy to Output Directory to Copy if newer and so everytime you run the application they will be copied to the bin/Debug folder alongside with the executable and in your application you could access them as relative files: File.ReadAllText("myfile.txt");:

