Internet Direct (Indy)
Home
PreviousUpNext
TReadFileExclusiveStream.Create Constructor

Constructor for the object instance.

Pascal
constructor Create(
    const AFile: String
);
Parameters 
Description 
AFile 
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.

Internet Direct (Indy) version 10.1.5
Copyright © 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Website http://www.indyproject.org.
Post feedback to the Indy Documentation newsgroup.