public ReadJsonFileContent ( string path ) : string | ||
path | string | |
리턴 | string |
public virtual string ReadJsonFileContent(string path)
{
if (!File.Exists(path))
{
throw new FileNotFoundException(path);
}
using (TextReader reader = new StreamReader(path))
{
return reader.ReadToEnd();
}
}
}