[Overview][Constants][Types][Procedures and functions][Variables][Index] |
Extract directory part from filename
Source position: oldlinux.pp line 1583
function Dirname( |
const path: PathStr |
):PathStr; |
Returns the directory part of Path. The directory is the part of Path before the last slash, or empty if there is no slash. The last character of the result is not a slash, unless the directory is the root directory.
None.
|
Return basename of a file |
|
|
Expand filename to fully qualified path |
Program Example47; { Program to demonstrate the DirName function. } Uses oldlinux; Var S : String; begin S:=FExpand(Paramstr(0)); Writeln ('This program is in directory : ',Dirname(S)); end.
lazarus-ccr.sourceforge.net |