Crestron SIMPL+ Reference Manual page 160

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

Advertisement

Software
®
150
SIMPL+
Example:
(Refer to "File Functions Overview"on page 116)
FILE_INFO FileInfo;
SIGNED_INTEGER Found;
StartFileOperations();
Found = FindFirst("*.dat", FileInfo );
WHILE (Found = 0)
{
if ((FileInfo.File Attributes&ADIRENT) <>0)
PRINT ("%s is a directory\n", FileInfo.Name
Else
PRINT ("%s is a file\n",FileInfo.Name
Found = FindNext(FileInfo);
}
IF ( FindClose() < 0 )
PRINT ( "Error in closing find operation\n" );
EndFileOperations();
NOTE: FindFirst must be followed by a FindClose.
Version:
SIMPL+ Version 3.00.02 or higher (Pro 2 only)
Control System:
2-Series Only
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