phpman > perldoc > truncate(21)

Markdown | JSON | MCP    

    truncate FILEHANDLE,LENGTH
    truncate EXPR,LENGTH
            Truncates the file opened on FILEHANDLE, or named by EXPR, to
            the specified length. Raises an exception if truncate isn't
            implemented on your system. Returns true if successful, "undef"
            on error.

            The behavior is undefined if LENGTH is greater than the length
            of the file.

            The position in the file of FILEHANDLE is left unchanged. You
            may want to call seek before writing to the file.

            Portability issues: "truncate" in perlport.

Generated by phpman v3.7.12 Author: Che Dong Under GNU General Public License
2026-06-14 05:48 @216.73.216.200
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Valid XHTML 1.0 TransitionalValid CSS!