Filebof - Crestron SIMPL+ Reference Manual

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

Advertisement

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

FileBOF

Name:
FileBOF
Syntax:
SIGNED_INTEGER FileBOF (INTEGER handle)
Description:
Tests whether or not the current file pointer is at the beginning of the file.
Parameters:
HANDLE specifies the file handle of the previously opened file (from FileOpen).
Return Value:
Returns 1 if beginning of file or 0 if not end of file. Otherwise, file error code is
returned.
Example:
(Refer to "File Functions Overview"on page 116)
SIGNED_INTEGER
StartFileOperations();
nFileHandle = FileOpen ( "MyFile", _O_RDONLY );
IF (nFileHandle < 0)
{
PRINT("Error Opening File MyFile\n");
return;
}
IF ( FileBOF ( nFileHandle )
PRINT ( "Beginning of file reached\n" );
IF ( FileClose ( nFileHandle ) <> 0 )
PRINT ( "Error closing file" );
EndFileOperations();
Version:
SIMPL+ Version 3.00.02 or higher (Pro 2 only)
Control System:
2-Series Only
nFileHandle;
= 1 )
Software
®
SIMPL+
121

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?

Subscribe to Our Youtube Channel

Table of Contents

Save PDF