File Directory Stream C# Tutorial

using System;
using System.IO;
class MainClass
{
    public static void Main(string[] args)
    {
            
            string filename = "c:\\file.txt";
            
            FileStream f = new FileStream(filename, FileMode.Open);
            StreamReader stream = new StreamReader(f);
            
            string line;
            line = stream.ReadLine();    // header line
            Console.WriteLine(line);
            
    }
}