Topic Path: Symbol Reference > Classes > TReadFileExclusiveStream Class > TReadFileExclusiveStream Methods > Create Constructor
TReadFileExclusiveStream.Create Constructor

Constructor for the object instance.

constructor Create(
    const AFile: String
File name used to store the contents read from or written to the file stream. 

Create is the constructor for the object instance. AFile is the name of the file on the local file system used to store any values read from or written to the file stream. TReadFileExclusiveStream assumes that the file in AFile already exists on the local file system. 

Create calls the inherited constructor using the specififed file name and the following file anf sharing modes OR'd together: 



Please note that TReadFileExclusiveStream does not prevent another application or thread from attempting to write to the file for the file stream; it only ensures that the operation cannot be successfully completed.

Copyright 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Post feedback to the Indy Docs Newsgroup.