How to read the file from the end
Posted: Mon Oct 08, 2007 10:03 am
I am writing FTP log to a file every day(same file), I need to read this file every day and send an e-mail when there are error message.
I am planning to read from the end-of file until the begining of that day's log so that I will be reading only that day's log, planning to send an e-mail when I encounter any error message.
If possible Can any one suggest me how to get the file pointer so that I can read from the end of file? OR how to do SEEK -1.
Thanks
I am planning to read from the end-of file until the begining of that day's log so that I will be reading only that day's log, planning to send an e-mail when I encounter any error message.
If possible Can any one suggest me how to get the file pointer so that I can read from the end of file? OR how to do SEEK -1.
Thanks