public static ReadFile ( string filename ) : String | ||
filename | string | Web-formatted path and file name to read. |
리턴 | String |
public static String ReadFile(string filename)
{
string inn = "";
try
{
string fn = H3Storage.MapPath(filename);
using (StreamReader sr = new StreamReader(fn))
{
inn = sr.ReadToEnd();
}
}
catch
{
return (string.Empty);
}
return (inn);
}