using System; using System.IO; using System.Security; class App{ public static void Main(string[] args){ try{ StreamReader reader = new StreamReader(args[0]); Console.WriteLine(reader.ReadToEnd()); }catch(SecurityException){ Console.WriteLine("You do not have permission to view the file."); } } }