I tried many ways to access a text file in my Visual Studio 2012 Solution from a folder named TextFiles
TextFiles
using (System.IO.StreamWriter file = new Sys
I ran into a similar issue and ended up using
string sFileName = HttpContext.Current.Server.MapPath(@"~/dirname/readme.txt");