PasswordCreator/PasswordInformation.cs
/// <summary>
/// Save the password entity to a file
/// </summary>
Save the password entity to a file
Save the password entity to a file
public void Save()
        {
            try
            {
                FileStream writerFileStream = new FileStream(DATE_FILENAME, FileMode.Create, FileAccess.Write);
                this.formatter.Serialize(writerFileStream, this.passwordDictionary);
                writerFileStream.Close();
            }
            catch (Exception)
            {
                MessageBox.Show("Unable to save Password Information!");
            }
        }
public void Save ( ) { try { FileStream writerFileStream = new FileStream ( DATE_FILENAME , FileMode . Create , FileAccess . Write ) ; this . formatter . Serialize ( writerFileStream , this . passwordDictionary ) ; writerFileStream . Close ( ) ; } catch ( Exception ) { MessageBox . Show ( " " ) ; } }
Save the password entity to a file
Save the password entity to a file
//create filestream that will write data to a file //close the filestream