| Input and output functionsShorten a fileDaftar Isi - truncate FILEHANDLE,LENGTH
- truncate EXPR,LENGTH
Truncates the file opened on FILEHANDLE, or named by EXPR, to thespecified length. Raises an exception if truncate isn't implementedon your system. Returns true if successful, undef on error. The behavior is undefined if LENGTH is greater than the length of thefile. The position in the file of FILEHANDLE is left unchanged. You may want tocall seek before writing to the file. Portability issues: truncate in perlport. |
| |
|