/*************************************************************************************************/ public void UpdateUsersCSVFile(string filename, List <User> encryptedUsers) { if (encryptedUsers == null) { throw new ArgumentNullException(nameof(encryptedUsers)); } _writer.Initialize(filename); foreach (var user in encryptedUsers) { _writer.WriteLine(user.GetUserString()); } _writer.Close(); }
/*************************************************************************************************/ public void UpdatePasswordCSVFile(string filename, List <DatabasePassword> encryptedPasswords) { if (encryptedPasswords == null) { throw new ArgumentNullException(nameof(encryptedPasswords)); } _writer.Initialize(filename); foreach (var password in encryptedPasswords) { _writer.WriteLine(password.GetPasswordString()); } _writer.Close(); }