示例#1
0
文件: App.cs 项目: sysrpl/Codebot.Web
 /// <summary>
 /// Write to a file
 /// </summary>
 public static void Write(string fileName, string contents)
 {
     FileCache.Write(fileName, contents);
 }
示例#2
0
文件: App.cs 项目: sysrpl/Codebot.Web
 /// <summary>
 /// Read from a file and keep a cached copy of its content
 /// </summary>
 public static string Read(string fileName)
 {
     return(FileCache.Read(fileName));
 }