Changes the size of a file opened with the FOpenEx or FCreateEx function.

FChSizeEx(nFileHandle, nNewFileSize)

Parameters

nFileHandle

A file handle retrieved from FCreateEx, FOpenEx or a windows api function.

nNewFileSize

The new file size.

Return Value

The new size (numeric) of the file.

See Also

Reference

AFHandlesEx
FCloseEx
FCreateEx
FEoFEx
FFlushEx
FGetsEx
FLockFile
FLockFileEx
FOpenEx
FPutsEx
FReadEx
FSeekEx
FUnlockFile
FUnlockFileEx
FWriteEx

Used WinApi functions

SetEndOfFile
SetFilePointer