private void button2_Click(object sender, EventArgs e) { File.Decrypt("Text.pvf"); string[] DataFile = File.ReadAllLines("Text.pvf"); if (DataFile[5] == "6") MessageBox.Show("Encrypt/Decrypt successful"); } private void button1_Click(object sender, EventArgs e) { string[] DataFile = new string[6]; DataFile[0] = "1"; DataFile[1] = "2"; DataFile[2] = "3"; DataFile[3] = "4"; DataFile[4] = "5"; DataFile[5] = "6"; File.WriteAllLines("Text.pvf", DataFile); File.Encrypt("Text.pvf"); }
NotSupportedException
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)