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
~ is not the "user home" or anything else in Windows. You can still set the path as relative to the working directory (where the executable is) by just not specifying a full path.
~