EasyManua.ls Logo

Crestron SIMPL+ - Page 190

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+
®
180 z SIMPL+
®
Language Reference Guide - DOC. 5797G
Example:
(Refer to "File Functions Overview"on page 116)
SIGNED_INTEGER nFileHandle, nTotalBytesRead;
STRUCTURE PhoneBookEntry
{
STRING Name[50];
STRING Address[100];
STRING PhoneNumber[20];
};
PhoneBookEntry OneEntry;
StartFileOperations();
nFileHandle = FileOpen ( “MyFile.txt”, _O_RDONLY );
if (nFileHandle >= 0)
{
ReadStructure( nFileHandle, PhoneBookEntry,
nTotalBytesRead );
if( nTotalBytesRead < 0 )
PRINT ( “Error reading structure. Error code = %d\n”,
nTotalBytesRead );
else
PRINT ( “Read structure from file correctly. Total
bytes read = %d\n”, nTotalBytesRead );
}
EndFileOperations();
Version:
SIMPL+ Version 3.00.07 or higher (Pro 2 only)
Control System:
2-Series Only

Table of Contents

Other manuals for Crestron SIMPL+

Related product manuals