Ejemplo n.º 1
0
 public void Save(string name, AccountInfo info)
 {
     File.WriteAllLines(GetPath(name), new[] { info.ToString() }, encoding);
 }
Ejemplo n.º 2
0
        public AccountInfo GetAccountInfo(string name)
        {
            var path = GetPath(name);

            return(File.Exists(path) ? AccountInfo.Parse(File.ReadAllLines(path, encoding)) : null);
        }