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.
Who is Participating?
iHadiConnect With a Mentor Commented:

Try the following code:

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

Imports System.IO
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.