[lazarus] OT: CGI for apache with free pascal

Michael Van Canneyt michael.vancanneyt at wisa.be
Wed May 26 09:21:25 EDT 1999




On Wed, 26 May 1999, Michael A. Hess wrote:

> Cliff Baeseman wrote:
> > 
> >  Do you have anything laying around that can strip a file name from a
> > path.?
> 
> Dos unit
> 
>    FSplit - Splits up the path into path, filename, extension.
> 
> Linux unit
> 
>    Basename - Gives you the filename stripping off the suffix
>    DirName - Gives you the path name stripping off the filename.
> 
> Be sure to read the documentation for exactly how to use these.   :-)

Better yet, use the sysutils unit, like Delphi:

extractfilename
extractfilepath
extractfiledir
extractfileext

These are system independent. Sysutils is, with the exception of some details,
100% implemented. Use that, since it is the same on all platforms.

Michael.






More information about the Lazarus mailing list