hi,
how to read the last line in a file.
my file looks like this
U1,A,200,......
ZZ
email_address
I have to read the last line and insert it into a table.
what I am suppose to do is
read the first 2 lines and insert them into a table 'A'
and read the last line and insert it into a Table 'B'.
The number of lines in my file may vary. so I have to read the last line,
how can I do that.
Thank you
sarithat
how to read the last line in a file.
my file looks like this
U1,A,200,......
ZZ
email_address
I have to read the last line and insert it into a table.
what I am suppose to do is
read the first 2 lines and insert them into a table 'A'
and read the last line and insert it into a Table 'B'.
The number of lines in my file may vary. so I have to read the last line,
how can I do that.
Thank you
sarithat