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.

TPJFileHandle class

Project: I/O Utility Classes

Unit: PJFileHandle

Applies to: ~>1.0


This helper class can create or open files in various access and sharing modes with specified security and provide access to the file handle.

The class was designed with the sole purpose of making it easier to obtain inheritable file handles for use elsewhere. As a result the class provides no methods of its own for accessing the file.

If there is a need to read or write the file you can either create a THandleStream using the handle or you can use pass the handle to suitable handle file access routines from Delphi’s SysUtils and Windows units.


Method Description
Create Overloaded constructors. Each opens or creates a file and records its handle.


Property Description
Handle Handle used to access file.


TPJFileHandle exposes no events.