Write a C# program to print the noofcharacters , noof words,noof lines from a text file?
Q2. And also write a program to read the file from current directory and do the same operation //namespaces using System.IO; using System; class Program { static void Main() { Console.WriteLine("Hello, World!"); //below code line is used to get all filenames from the current directory string[] _fileNamesInDirectory = Directory.GetFiles(Directory.GetCurrentDirectory()); foreach(var item in _fileNamesInDirectory) { //below code is used to get the filepath for each file using directory and filename string filepath = Path.Combine(Directory.GetCurrentDirectory(), item); if(!string.IsNullOrEmpty(filepath)) { //here we are getting the file extension ...