Microsoft SDK for Java

getExtension

This method of the Path Class retrieves the extension of the file name. If there is no extension, this method returns null.

Syntax

public static String getExtension(String stPath);

Return Value

Returns the extension of the file name.

Parameters

stPath The path string.

© 1999 Microsoft Corporation. All rights reserved. Terms of use.