Software
®
142
SIMPL+
Example:
(Refer to "File Functions Overview"on page 116)
SIGNED_INTEGER
STRING sBuf [ 100 ];
StartFileOperations();
nFileHandle = FileOpen ( "MyFile", _O_RDONLY );
IF (nFileHandle >= 0)
{
WHILE (FileRead(nFileHandle, sBuf, 4096) > 0)
PRINT ( "Read from file: %s\n", sBuf );
IF ( FileClose ( nFileHandle ) <> 0 )
PRINT ( "Error closing file\n" );
}
EndFileOperations();
Version:
SIMPL+ Version 3.01 or higher (Pro 2 only)
Control System:
2-Series Only
nFileHandle;
Language Reference Guide - DOC. 5797G
Crestron SIMPL+
®
Need help?
Do you have a question about the SIMPL+ and is the answer not in the manual?
Questions and answers