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

This is an example of how to use the SysFileSeek function along with the FileSeekType structure.

task main()
{
byte handle;
// get a file handle
// ...
args.FileHandle = handle;
args.Origin = SEEK_SET;
args.Length = 65;
SysFileSeek(args);
if (args.Result == NO_ERR)
{
// do something
}
}