DKTruncate()

  DKTruncate

Description

DKTruncate() is used to truncate a file to a specified size.

Call Signature

void DKTruncate ( string filename, int byte_length )

Return Value

void

This has no return value.

Arguments

string filename:

The name of the file to be truncated.

int byte_length:

The new length of the file, in bytes.

Remarks

DKTruncate() does not report any errors, even if the file was not found. DKTruncate() may not be implemented on all systems.

See also

Binary file functions

© PCI Geomatics Enterprises, Inc.®, 2026. All rights reserved.