Sets the logical length of the file.
#include <nks/fsio.h> int NXFileSetLengthWithHandle ( NXHandle_t fileHandle, NXOffset_t length, unsigned long flags);
(IN) Specifies a handle to a previously opened file (rather than a path).
(IN) Specifies the new file length.
(IN) Not currently used. Set to 0.
If successful, returns 0. Otherwise, returns one of the following error codes:
Before calling the NXFileSetLengthWithHandle function, you must first open the file for writing. The actual physical size of the file can be smaller, larger, or the same as the length parameter.