How to append the first line when text file data reach the last line ?

iyappan

New member
Joined
Sep 23, 2015
Messages
4
Programming Experience
Beginner
i trying to read the text file .So my question is how to append the first line when i reach the last line in the text file ?
Ex
1
2
3
.
.
10
when i reach the 10 ,automatically read from the 1 . how to suppose i do? please give any idea ....
 
It's not clear to me what you're asking for. You start out by saying that you want to append, which implies that you want to write, but then you end by saying that you want to read. Are you saying that you want to just keep on reading lines from the file, looping back to the start when you hit the end?
 

Latest posts

Back
Top