D
Debajyoti Sarma
Suppose a text file is given.Each line is separated by next line char
line 1
line 2
line 3
..
..
line n-1
line n
I want to read the file from the end i.e.
first read line n ,than line n-1 , so on up to some condition in a
loop
Please provide guidance.
One more doubt : can we insert line 0 at the beginning of the file by
using some inbuilt facility without doing manual shift of the line 1
to line n in forward??
line 1
line 2
line 3
..
..
line n-1
line n
I want to read the file from the end i.e.
first read line n ,than line n-1 , so on up to some condition in a
loop
Please provide guidance.
One more doubt : can we insert line 0 at the beginning of the file by
using some inbuilt facility without doing manual shift of the line 1
to line n in forward??