Arbortext Command Language > Functions by Alphabetical Listing > truncate
  
truncate
[0|–1] = truncate(fid, length)
This function sets the size of the file identified by fid to length bytes. fid must refer to a file that was opened for writing. If the file is currently larger than length, the extra bytes are removed. If the file is shorter, then zero bytes are added. The function returns 0 on success or -1 on failure.