chickadee » posix » file-truncate

file-truncate FILE OFFSETprocedure

Truncates the file FILE to the length OFFSET, which should be an integer. If the file-size is smaller or equal to OFFSET then nothing is done. FILE should be a filename or a file-descriptor.