string path = Path.Combine(AppDomain.CurrentDomain.BaseDirectory,"a.txt");//获得debug文件下a.txt的绝对路径
.net获取据对路径
原文:http://www.cnblogs.com/wwz-wwz/p/6404741.html