NXC  Version 1.2.1 r5
 All Data Structures Files Functions Variables Groups Pages
ex_sysfileresize.nxc

This is an example of how to use the SysFileResize function along with the FileResizeType structure.

task main()
{
byte handle;
// get a file handle
// ...
// resize the file
args.FileHandle = handle;
args.NewSize = 2048;
if (args.Result == NO_ERR)
{
// do something
}
}