help files
Z505 | PasWiki | FUQ | Search | Main Docs | API Guide



[Overview][Constants][Types][Procedures and functions][Variables] Reference for unit 'oldlinux' (#rtl)

FSearch

Search for file in search path.

Declaration

Source position: oldlinux.pp line 1581

function FSearch(

  const path: PathStr;

  dirlist: String

):PathStr;

Description

FSearch searches in DirList, a colon separated list of directories, for a file named Path. It then returns a path to the found file.

Errors

An empty string if no such file was found.

See also

BaseName

  

Return basename of a file

DirName

  

Extract directory part from filename

FExpand

  

Expand filename to fully qualified path

FNMatch

  

Check whether filename matches wildcard specification

Example

Program Example46;

{ Program to demonstrate the FSearch function. }

Uses oldlinux,strings;

begin
  Writeln ('ls is in : ',FSearch ('ls',strpas(Getenv('PATH'))));
end.

Notes

 No notes exist for this page yet. 





lufdoc, Powtils, fpc, freepascal, delphi, kylix, c/c++, mysql, cgi web framework docs, Z505