FileDialog.getFileNames

Overview | Methods | This Package | All Packages

FileDialog.getFileNames

Retrieves the file names of all selected files in the dialog box.

Syntax

public final String[] getFileNames()

Return Value

Returns an array containing the file names of all selected files in the dialog box. Each file name includes both the file path and the extension. If multiple files are selected, this method returns the first file name in the list. If no files are selected, this method returns an empty array.

Remarks

See the OpenFileDialog control topic for a code example using this method.