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

This is an example of how to use the SysFileResolveHandle function along with the FileResolveHandleType structure.

task main()
{
frhArgs.Filename = "myfile.txt";
if (frhArgs.Result == LDR_SUCCESS) {
// use the FileHandle as needed
if (frhArgs.WriteHandle) {
// file is open for writing
}
else {
// file is open for reading
}
}
}