System.SysUtils.FileIsReadOnly

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function FileIsReadOnly(const FileName: string): Boolean;

C++

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

Properties

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

Description

Reports whether a file is read-only.

FileIsReadOnly returns True if FileName can be found and opened, but the current process does not have permission to write to it.

Note: Call FileExists before using FileIsReadOnly.

Note: If the FileName parameter represents a symbolic link, the method will be performed on the target file.

See Also