Writeinteger - Crestron SIMPL+ Reference Manual

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

Advertisement

Crestron SIMPL+
Language Reference Guide - DOC. 5797G
®

WriteInteger

Name:
WriteInteger
Syntax:
SIGNED_INTEGER WriteInteger ( INTEGER file_handle,
INTEGER i )
Description:
Writes an integer from a file starting at the current file position. Two bytes are
written, most significant byte first. Refer to the section entitled "Reading and Writing
Data to a File" on page
use the related functions: FileWrite, WriteInteger, WriteString, WriteStructure,
WriteSignedInteger, WriteLongInteger, WriteLongSignedInteger,
WriteIntegerArray, WriteSignedIntegerArray, WriteLongIntegerArray,
WriteLongSignedIntegerArray, WriteStringArray.
NOTE: Input and Output variables of any kind are not allowed in the file reading and
writing functions, just internal variables.
Use ReadInteger to read this.
Parameters:
FILE_HANDLE specifies the file handle of the previously opened file (from
FileOpen).
I is the 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.
118
for a discussion of when to use this function and when to
Software
®
SIMPL+
185

Advertisement

Table of Contents
loading

Table of Contents