getFileName function

String getFileName(
  1. String filePath
)

Implementation

String getFileName(
    String filePath
    )
{
    int index = filePath.lastIndexOf( '/' );
    return filePath.substring( index + 1 );
}