How would this work? $read(xyz,1) reads the first line. Are you saying $reade(xyz,1) should read the last line? $reade(xyz,2) should read the 2nd to last line.

Etc?