Why not read the whole file then ?
In reply to Re^3: how to populate array with last 20 lines of file by poj in thread how to populate array with last 20 lines of file by ytjPerl