Crestron SIMPL+ Reference Manual page 152

Language reference guide
Hide thumbs Also See for SIMPL+:
Table of Contents

Advertisement

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+
®

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the SIMPL+ and is the answer not in the manual?

Questions and answers

Table of Contents

Save PDF