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

This is an example of how to use the SysFileWrite function along with the FileReadWriteType structure.

task main()
{
fwArgs.FileHandle = foArgs.FileHandle;
fwArgs.Buffer = "data to write";
SysFileWrite(fwArgs);
if (fwArgs.Result == NO_ERR) {
// display number of bytes written
NumOut(0, LCD_LINE1, fwArgs.Length);
}
}