Tcl API Reference -- ns_truncate

### ns_truncate

#### Overview

Truncate a file to a specified length

#### Syntax

ns_truncate filename ?length?

#### Description

ns_truncate causes the file specified by filename to have a size of length bytes. If length is not specified, it causes filename to have a size of zero bytes. The file must exist and be a regular file.

#### See Also

ns_ftruncate

Top of Page
Copyright © 1998-99 America Online, Inc.