in reply to Re^2: Fastest way of changing the beginning of a txt file.. -- oneliner
in thread Fastest way of changing the beginning of a txt file..

Hello,

you can use seek but it seeks in bytes and you anyway have to scan the file in advance to track the position of wanted first line so I see no point in this (unless you alredy have it recorderd somehow).

L*

There are no rules, there are no thumbs..
Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.