using System; using System.IO; class filexercise14 { static void Main() { string fileName = @"mytest.txt"; string[] ArrLines ; int n,i,l,m=1; Console.Write("\n\n Read last n number of lines from a file :\n"); Console.Write("-----------------------------------------------\n"); if (File.Exists(fileName)) { File.Delete(fileName); } Console.Write(" Input number of lines to write in the file :"); n= Convert.ToInt32(Console.ReadLine()); ArrLines=new string[n]; Console.Write(" Input {0} strings below :\n",n); for(i=0; i=1 && l<=n) { Console.Write("\n The content of the last {0} lines of the file {1} is : \n",l,fileName); if (File.Exists(fileName)) { for(i=n-l; i