using System;
using System.IO;
public class Program
{
public static void Main()
{try
StreamReader f=new StreamReader ("text.txt");
string s=f.ReadToEnd();
Console.WriteLine(s);
f.Close();
}
catch (FileNotFoundException e)
{ Console.WriteLine(e.Message);
Console.WriteLine("Проверка правильности именни файла!");
Console.ReadKey();
return;}
catch(Exception e)
Console.WriteLine("Error: "+e.Message);
return;