public void Execute() { string outputString = null; using (var image = new Bitmap(Image.FromFile(_imagePath))) { outputString = Stenographer.ReadData(image, _secretKey); } if (!_ultraSecretMode) { if (string.IsNullOrEmpty(_outputPath)) { throw new ApplicationException("Error: missing outputpath parameter"); } File.WriteAllText(_outputPath, outputString); Console.WriteLine("Corpse unburied! Be careful!"); } else { Console.WriteLine("---BEGIN---"); Console.WriteLine(outputString); Console.WriteLine("----END----"); Console.WriteLine(); Console.ReadKey(); Console.Clear(); } }