Small company logo:
   History
 
Advertising banner:
 
 File.FindFirst
Home • Help • Customization Tools • FCAS • Language Reference • File.FindFirst
 
Purpose
Finds a file on the FCAS computer.
This method begins at the first file in a container and moves forward until a file that matches Pattern is found or the end of the files is reached. Each time the record pointer is moved, Pattern is re-evaluated.
Syntax
File.FindFirst (Pattern [, fcRead])


Pattern
Any file name pattern, including the * and ? wildcards.
fcRead
Causes FindFirst to not load the entire file into memory. Instead, it just provides directory list data such as name.
This allows FindFirst to execute quickly instead of waiting until the entire file has loaded. For example, a file would download completely before continuing without this parameter.

Example
Dim MyFile as File
MyFile.FindFirst("*.txt", fcRead)