Mahesh Kumar
How to read word file line by line in C#.
By Mahesh Kumar in ASP.NET on Dec 23 2010
  • Subhendu De
    Dec, 2010 28

    static void Main(string[] args)
            {
                string _line;
                string _path = @"C:\Users\sude\Documents\username.txt";
                StreamReader _reader = new StreamReader(_path);
                
                while((_line = _reader.ReadLine())!=null)
                {
                    Console.WriteLine(_line);
                }
            }

    • 0


Most Popular Job Functions


MOST LIKED QUESTIONS