Explain the methods FindFirst, FindNext and FindClose? - Delphi
Explain the methods FindFirst, FindNext and FindClose?
- FindFirst allows the searching of the first file in the directory that brings out the proper search result.
- It allows the users to look for specific files and provides lots of wild cards to make the search in a better way.
- If the file is being found then the search result creates an object keeping the track of the file.
- FindNext provides the functionality to find the next item in succession of the search criteria.
- It provides the result to the FindFirst and if matches it results back with the all the searches that are after one another matching that search criteria.
- FindClose provides the way to discard the memory that is being used by the object and allocate the object without using an explicit call to Create constructor.