private string ReadPath()
...{
string str = "";
string[] tmp;
string path = "";
string CurrentPath = Server.MapPath(".");
StreamReader sr=null;
try
...{
sr = new StreamReader(CurrentPath + "/config.txt", System.Text.Encoding.Default);
while ((str = sr.ReadLine()) != null)
...{
tmp = str.Split('/');
path = tmp[0].ToString();
}
sr.Close();
}
catch (Exception)
...{
sr.Close();
return path;
}
finally
...{
sr.Close();
}
return path;
}
811

被折叠的 条评论
为什么被折叠?



