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

This is an example of how to use the SysFileOpenWriteNonLinear function along with the FileOpenType structure.

task main()
{
FileOpenType foArgs;
foArgs.Filename = "myfile.txt";
foArgs.Length = 256; // create with capacity for 256 bytes
SysFileOpenWriteNonLinear(foArgs); // create the file
if (foArgs.Result == NO_ERR) {
// write to the file using FileHandle
}
}