public void load() // Load users' data from a file { try { this.Users = (Hashtable)SerialTools.Deserialize(path); } catch (IOException e) { Console.WriteLine(e.ToString()); } }
public void save() // Save users' data in a file { try { SerialTools.Serialize(path, Users); Console.WriteLine("Save completed"); } catch (IOException e) { throw new IOException(e.ToString()); } }
public TextGestAuthentification(string path) { try { this.path = path; this.Users = new Hashtable(); this.Users = (Hashtable)SerialTools.Deserialize(path); } catch (IOException e) { Console.WriteLine(e.ToString()); } }