C# Program to read the content of a file
In this C# program, we will read the content of the Text file and print the content of the file.
C# Program to read the content of a file Code:
private static void Main(string[] args)
{
string contents = File.ReadAllText(@"C:\Temp.txt");
Console.Write("Output: "+contents);
Console.ReadLine();
}
C# Program to read the content of a file Output:
