The filematch function accepts two parameters as described below, and returns a value of type boolean, which indicates whether the filename matches the file specification. If the filename matches the file specification then the value true is returned, and if the filename does not match the file specification then the value false is returned.
filematch('file.txt', 'file.txt') returns true
filematch('file.txt', 'otherfile.txt') returns false
filematch('*.txt', 'file.txt') returns true
filematch('*.txt', 'otherfile.txt') returns true
filematch('a?c', 'abc') returns true
filematch('a?c', 'agc') returns true
filematch('a?c', 'azc') returns true
filematch('a?', 'abc') returns false
filematch('a?c', 'ab') returns false
filematch('?c', 'bc') returns false
filematch('??c', 'abc') returns true
filematch('a??', 'avd') returns true
Operating Systems: All
Standard Pascal: No