View Single Post
Old Aug 12th, 2007, 4:51 PM   #1
Keiro
Newbie
 
Join Date: Nov 2006
Location: Here!!!
Posts: 7
Rep Power: 0 Keiro is on a distinguished road
Read file backwards

Hey,

I'm writing a script that appends to a file. Would it be possible if someone could tell me how to read a file from down up rather form up down. Example:

the
dog
sat

I want this to happen
sat
dog
the

So the file is read from down up line by line.

Many thanks in advance,

K
Keiro is offline   Reply With Quote