Originally posted as a Categorized Question.
In reply to Truncating a file from the filehandle? by Anonymous Monk