EasyManua.ls Logo

Crestron SIMPL+ - Page 152

Crestron SIMPL+
374 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Software Crestron SIMPL+
®
142 z SIMPL+
®
Language Reference Guide - DOC. 5797G
Example:
(Refer to "File Functions Overview"on page 116)
SIGNED_INTEGER nFileHandle;
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

Table of Contents

Other manuals for Crestron SIMPL+

Related product manuals