Read Me - Common Public License V1.0 - Copyright Notice(©)

name


>>-name--------------------------------------------------------><

Returns the name portion of the receiver object's absolute path. This is everything after the last path separator. On Windows, the file's extension is part of the name.

Class FILE - name method


/* On Windows */
say .File~new("c:\program files\oorexx\rexx.exe")~name   -- rexx.exe
say .File~new("c:\")~name                                -- empty string
say .File~new("c:")~name                                 -- empty string

/* On Unix */
say .File~new("/opt/ooRexx/bin/rexx.img")~name           -- rexx.img
say .File~new("/")~name                                  -- empty string

Read Me - Common Public License V1.0 - Copyright Notice(©)