public string Load(FileInfo fileInfo) { if (!File.Exists(fileInfo.filePath)) { return(""); } return(File.ReadAllText(fileInfo.filePath)); }
public bool Save(FileInfo fileInfo, string content, bool append) { if (!File.Exists(fileInfo.filePath)) { return(false); } File.WriteAllText(fileInfo.filePath, content); return(true); }