Create constructor

Project: I/O Utility Classes

Unit: PJFileHandle

Class: TPJFileHandle

Applies to: ~>1.0

constructor Create(const FileName: string; const Mode: LongWord;
  const Inheritable: Boolean = True); overload;

constructor Create(const FileName: string; const Mode: LongWord;
  const Security: PSecurityAttributes); overload;

Description

These two overloaded constructors open or create files and record the file handle in the Handle property.

Parameters are:

The constructors raise EFCreateError or EFOpenError exceptions if a file cannot be created or opened respectively.