Rob Spoor wrote:setLength can help with that.
Just setLength() would cut off the last N characters - nothing to do with "deleting the first line from a file.
Fastest way to do this is to read the whole file into a byte[], step through the characters til you find the start of the 2nd line and rewrite from the byte[] over the old file.
THEN use setLength to clean up the end.
Bill