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*
In reply to Re^3: Fastest way of changing the beginning of a txt file.. -- oneliner
by Discipulus
in thread Fastest way of changing the beginning of a txt file..
by pedrete
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |