Welcome to the new DelphiDabbler Code Library Documentation.

This is a new site that's currently running on alpha code. There are going to be bugs. If you discover any, please report them on the site's issues page (GitHub account required). Thanks.

Warning: Many URLs are going to change. Refer to the README file to discover which library project's documentation has been completed.

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.