Quantcast
Channel: reading ascii text file
Viewing all articles
Browse latest Browse all 6

reading ascii text file

$
0
0
Hello, i'm trying to read a ascii text file using the streamreader.
For simplicity, let's say my .txt file contains the following data:
a
b
c
d
e
f
g

How would i read from, let's say the first occurence of character "c" to "f"?

It would read 3 lines after "c", up to "f", and give me:
c
d
e
f


I understand how to read the entire file, but i do not know how to read it from a specific line, and 3 lines after that.
I would appreciate your help please!

Viewing all articles
Browse latest Browse all 6

Latest Images

Trending Articles





Latest Images