|
reading each line from a file
hi gurus.. i have a requirement like this...I need to read each line in a file and store it in a variable.. the file is li,e this. i would prefer to construct a loop for this.
1
2
3
4
5
6
7
i need something like this, while (i< last record in file)
x= the first record
do some stuff with x
(i=i+1)
read the next record in the next iteration.
thanks in advance
|