static void Main(string[] args) { Filereader x = new Filereader(); string fileContent = x.reading(@"C:\Data\Root\Code\test.txt"); Console.WriteLine(fileContent); Console.Read(); }
public void testreader() { Filereader filereader = new Filereader(); string reader = filereader.reading(@"C:\soumya\ReadFile\read.txt"); Assert.AreEqual("I love India", reader); }