EasyManua.ls Logo

Crestron SIMPL+ - Page 157

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...
Crestron SIMPL+
®
Software
Language Reference Guide - DOC. 5797G SIMPL+
®
z 147
Example:
(Refer to "File Functions Overview"on page 116)
SIGNED_INTEGER nFileHandle;
STRING sBuf [ 4096 ];
StartFileOperations();
sBuf = “Hello World!”;
nFileHandle = FileOpen ( “MyFile”, _O_WRONLY );
IF (nFileHandle >= 0)
{
if( FileWrite(nFileHandle, sBuf, 4096) > 0 )
PRINT ( “Written to 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