how can i get offset of a line in a text file?

so using this offset i can go back to the same line using
Streamreader.Basestream.Seek(offset,SeekOrigin.Begin)

First of all, this is not very explanatory.
Secondly, any code snippets of what you have done will be helpful.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.