/// <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); }
public bool Exists(string file, bool create = false) => FileCache.Get(GetPath(file)).Exists(create);
/// <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>()); }