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
®
Need help?
Do you have a question about the SIMPL+ and is the answer not in the manual?