File f = new File( "species/RABBIT.HTML" );
out.println( f.toString() );
out.println( f.getAbsolutePath() );
out.println( f.getName() );
out.println( f.getPath() );
out.println( f.getParent() );
out.println( f.getCanonicalPath() );
String fs = f.toString();
int place = f.lastIndexOf( '.' );
if ( place >= 0 )
{
out.println( f.substring( place + 1 ) );
}
f = new File( "E:\\genus\\species\\RABBIT.HTML" );
out.println( f.toString() );
out.println( f.getAbsolutePath() );
out.println( f.getName() );
out.println( f.getPath() );
out.println( f.getParent() );
out.println( f.getCanonicalPath() );
f = new File( "E:species\\RABBIT.HTML" );
out.println( f.toString() );
out.println( f.getAbsolutePath() );
out.println( f.getName() );
out.println( f.getPath() );
out.println( f.getParent() );
out.println( f.getCanonicalPath() );