in reply to truncate or trunc

To expand on what Fletch said, truncate requires two parameters, the second being the length of the file you wish to have left. Did you specify anything other than the filehandle?