Read file using StreamReader

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • louisphillip
    New Member
    • Mar 2008
    • 1

    Read file using StreamReader

    Hi,

    How can i read line by line from text file using stream reader or filestream in c#.

    Loius Phillip
  • epots9
    Recognized Expert Top Contributor
    • May 2007
    • 1352

    #2
    Moved to the .NET Forums where the resident experts can better assist you.

    **Moved from Programming challenges.

    Comment

    • Plater
      Recognized Expert Expert
      • Apr 2007
      • 7872

      #3
      I am going to answer this question, then probably lock this thread with plenty of "shame shame on you"
      StreamReader has a function called "ReadLine" which, if you had bothered to even LOOK at the documentation on, you would have seen.

      So StreamReaders can use ReadLine() to return line by line from a file. MSDN will have examples on it.

      For Shame.

      Comment

      Working...