read specific line in a text file

How can I read a specific line and a text file. for example, I want to get a data from a text line just on line number 25. This contains probably about 60 to 70 lines.
VBdotnet2005Asked:
Who is Participating?
 
iHadiConnect With a Mentor Commented:
Hi

Try the following code:

Dim str() as string = File.ReadAllLines("C:\\a.txt")
Console.WriteLine(str(24))
0
 
Mike TomlinsonMiddle School Assistant TeacherCommented:
Code above assume you have this at the top:

Imports System.IO
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.