public void Visit(Forms.File f) { myNum = -myNum; string wat = f.GetTextFromFile(); wat = Encryption(wat); var someStream = new Forms.File(f.GetFullName().Remove(f.GetFullName().Length - 5, 5) + ".txt").Create(); byte[] info = new UTF8Encoding(true).GetBytes(wat); someStream.Write(info, 0, info.Length); f.Delete(); }
public void Visit(Forms.File f) { string wat = f.GetTextFromFile(); wat = Decrypt(wat); var someStream = new Forms.File(f.GetFullName() + "crypt.txt").Create(); byte[] info = new UTF8Encoding(true).GetBytes(wat); someStream.Write(info, 0, info.Length); f.Delete(); }