예제 #1
0
 /// <summary>
 /// Write object to the specified file
 /// </summary>
 /// <param name="obj">Object to write</param>
 /// <param name="file">File name</param>
 public void Write(object obj, string file)
 {
     FileCache.Get(GetPath(file)).Write(obj);
 }
예제 #2
0
 public bool Exists(string file, bool create = false) => FileCache.Get(GetPath(file)).Exists(create);
예제 #3
0
 /// <summary>
 /// Read T object from the specified data file
 /// </summary>
 /// <param name="file">File name</param>
 /// <typeparam name="T">Type of the return value</typeparam>
 /// <returns></returns>
 public T Read <T>(string file)
 {
     return(FileCache.Get(GetPath(file)).Read <T>());
 }