public static void Write(MySafe safe, string fileName) { WriteLine("enter content to write:"); string content = ReadLine(); string encrypted = safe.Encrypt(content); File.WriteAllText(fileName, encrypted); WriteLine($"content written to {fileName}"); }
public static void Write(MySafe safe, string fileName) { WriteLine("enter content to write:"); string content = ReadLine(); string encrypted = safe.Encrypt(content); File.WriteAllText(fileName, encrypted); WriteLine($"content written to {fileName}"); }