ftruncate

Tronca un file alla lunghezza data

Descrizione

bool ftruncate(resource $handle, int $size)

Prende il puntatore al file handle e tronca il file alla lunghezza indicata da size. Return success

Nota: Nelle versioni di PHP precedenti alla 4.3.3, la funzione ftruncate restituisce un integer di valore 1 se l'operazione riesce, anziché restituire boolean true.

See also fopen and fseek.