Reading from text files in C#

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Vangos
    New Member
    • Jun 2007
    • 1

    Reading from text files in C#

    Hi.

    I am an amateur Visual C# programmer and I need your help...

    I have created a program that opens a text file for reading its contents. I want the program to read a specific line (for example the 5th line) and put it in a string.

    How can I make it read a specific line from the text file?

    Thanx a lot.
  • kenobewan
    Recognized Expert Specialist
    • Dec 2006
    • 4871

    #2
    Welcome to TSDN. Here is an article that may help:
    Reading Text Files in an ASP.NET Web Page

    Comment

    Working...