TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Michael Mortensen
NA
8
4.3k
TextReader how to read any line I want?
Apr 24 2014 6:38 AM
I want to be able to read a specific line of a txt file
Here's my code
using (TextReader reader = File.OpenText("File.txt"))
{
Text = reader.ReadLine();
Console.WriteLine(Text);
labelRead.Text = Text;
}
This reads the first line of the txt file. How do I make it read another line. Let's say, line 3?
Reply
Answers (
1
)
how to write Bible Program
Uploading Images and Timer Icon or Uploading progress bar