Show: Object Pascal C++
Display Preferences

System.SysUtils.FileIsReadOnly

From Appmethod Libraries
Jump to: navigation, search

Object Pascal

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

Personal tools
Translations