Crestron SIMPL+ Reference Manual page 156

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

Advertisement

Software
®
146
SIMPL+
FileWrite
Name:
FileWrite
Syntax:
SIGNED_INTEGER FileWrite (INTEGER handle, STRING buffer,
INTEGER count )
Description:
Writes data from a file as a series of bytes into a buffer, starting at the current file
position. Refer to the section entitled "Reading and Writing Data to a File" on page
118
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.
NOTE: Input and Output variables of any kind are not allowed in the file reading and
writing functions, just internal variables.
Parameters:
HANDLE specifies the file handle of the previously opened file (from FileOpen).
BUFFER is the variable containing the bytes to be written.
COUNT specifies the number of bytes to write.
Return Value:
Number of bytes written to the file. If the return value is negative, it is an error code.
Crestron SIMPL+
Language Reference Guide - DOC. 5797G
®

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?

Table of Contents

Save PDF