I have a text file which keeps a log of transactions. The entries are posted daily. When the file gets too big (either by measurement of line numbers or by file size, ie. 200 Kb) then I want to trim the oldest transaction lines from the top. How much is trimmed doesn't need to be exact just enough to keep the file around the same size day-to-day.