public void Save(string name, AccountInfo info) { File.WriteAllLines(GetPath(name), new[] { info.ToString() }, encoding); }
public AccountInfo GetAccountInfo(string name) { var path = GetPath(name); return(File.Exists(path) ? AccountInfo.Parse(File.ReadAllLines(path, encoding)) : null); }