Hy Guys!

PLease Help Me on the following problem.

How can i do the next thing?

I want to know what's the data in a textfile's line. If i'v got the line number.

For example:

variable line_number = 5
In the c:\test.txt on the 5th line the data is "Washington"

So the answer is Washington

Thank u for your help!

Try

Dim line() As String = System.IO.File.ReadAllLines("myfile.txt")

That will read the entire file into an array, one line per array entry. You can access the text from line 5 as line(4).