System.SysUtils.LocaleFileExists

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function LocaleFileExists(const FileName: string): Boolean;

C++

extern DELPHI_PACKAGE bool __fastcall LocaleFileExists(const System::UnicodeString FileName);

Properties

Type Visibility Source Unit Parent
function public
System.SysUtils.pas
System.SysUtils.hpp
System.SysUtils System.SysUtils

Description

Returns a Boolean value that indicates whether the specified file exists with preferred UI language subdirectories.

LocaleFileExists performs the following operations:

  1. The directory and the basename are extracted from the FileName parameter.
  2. The locale directory that corresponds to any of the preferred UI languages is searched in directory. If such a directory is found and it contains basename, then True is returned. Otherwise, the value returned indicates whether the file specified by the FileName parameter exists.

See Also