路径的读取

 1.读取通过 AppDomain  方法

string basePath = AppDomain.CurrentDomain.BaseDirectory;

string keyPath = string.Format("{0}\\{1}.xml", basePath, "Key");

var content=File.ReadAllText(keyPath);

posted @ 2016-09-20 16:45  李寒星  阅读(137)  评论(0编辑  收藏  举报