Crestron simpl plus language ref 사용자 설명서

다운로드
페이지 374
Crestron SIMPL+
®
Software 
Language Reference Guide - DOC. 5797G
 SIMPL+
®
 
z 191
WriteSignedInteger
Name:
WriteSignedInteger
Syntax:
SIGNED_INTEGER WriteSignedInteger ( INTEGER 
file_handle, 
SIGNED_INTEGER si )
Description:
Writes a signed integer from a file starting at the current file position. Two bytes are 
written, most significant first. Refer to the section entitled “Reading and Writing Data 
to a File” on page 
 for a discussion of when to use this function and when to use 
the related functions: FileWrite, WriteInteger, WriteString, WriteStructure, 
WriteSignedInteger, WriteLongInteger, WriteLongSignedInteger, 
WriteIntegerArray, WriteSignedIntegerArray, WriteLongIntegerArray, 
WriteLongSignedIntegerArray, WriteStringArray.
Use ReadSignedInteger to read this.
Parameters:
FILE_HANDLE specifies the file handle of the previously opened file (from 
FileOpen). 
SI is the signed integer whose value is written. 
Return Value:
Number of bytes written to the file. If the return value is negative, it is an error code.
NOTE: Input and Output variables of any kind are not allowed in the file reading and 
writing functions, just internal variables.