in reply to truncate a file from top

without ... tieing the file to an array

Out of curiosity, the FAQ says that's the way to go, why don't you want that?

The answer is to use a   while   loop, throwing away the first bytes/lines as you go.

Cheerio, Sören