Do you mean that you want the loop to start with the last line in the file and then run for each line backwards? If so I don't know of any way of doing that. After all linefeed is just a character in the file so how would anybody know where they are before reading the file?