NXC
Version 1.2.1 r5
Main Page
Related Pages
Modules
Data Structures
Files
Examples
All
Data Structures
Files
Functions
Variables
Groups
Pages
ex_sysfileopenread.nxc
This is an example of how to use the
SysFileOpenRead
function along with the
FileOpenType
structure.
task main()
{
FileOpenType
foArgs;
foArgs.
Filename
=
"myfile.txt"
;
SysFileOpenRead
(foArgs);
// open the file for reading
if
(foArgs.
Result
==
NO_ERR
) {
// read data from the file using FileHandle
}
}
Generated by
1.8.2