FileEnumerator.FileEnumerator

Overview | Methods | This Package | All Packages

FileEnumerator.FileEnumerator

Creates a FileEnumerator object.

Syntax

public FileEnumerator( String path )

Parameters

path

The directory path and file name to enumerate.

Exceptions

WinIOException thrown if the specified path is invalid.

Remarks

The path parameter must specify a valid directory path and file name. The file name can contain wildcard characters (* and ?). Following the construction of a file enumerator, the hasMoreFiles method indicates whether at least one file was found that matches the specified pattern.