Location: Symbol Reference > Classes > TJwFileStreamEx Class > Create Constructor > TJwFileStreamEx.Create Constructor (TJwString, Word, Word)
JWSCL Documentation
ContentsIndexHome
PreviousUpNext
TJwFileStreamEx.Create Constructor (TJwString, Word, Word)
Pascal
constructor Create(const Filename: TJwString; Access: Word; ShareMode: Word = FILE_SHARE_READWRITE); overload;
Parameters 
Description 
const Filename: TJwString 
The filename of the file which is to be opened/created  
Access: Word 
Specifies the way the filestream opens the file.
*fmCreate : Creates a new file *fmCreateTemporary: Creates a new file which is deleted after the filestream is destroyed *fmOpenRead : Opens an existing file with Readonly access! *fmOpenWrite : Opens an existing file with WriteOnly access! *fmOpenReadWrite : Opens an existing file with full access (read/write)
 
ShareMode: Word = FILE_SHARE_READWRITE 
The sharing mode of the file. Can be:
*FILE_SHARE_NONE : Other processes cannot access the file until the stream is destroyed *FILE_SHARE_READ : Other processes have read access to the file *FILE_SHARE_WRITE : Other processes have write access to the file *FILE_SHARE_DELETE : Other processes are allowed to delete the file *FILE_SHARE_READWRITE: Other processes have either read or write access to the file 

Create Creates an instance of the TJwFileStreamEx class 

 

Exceptions 
Description 
This exception is thrown if CreateFile fails 
EJwsclFileMappingException 
This exception is thrown if an error has occured in TJwCustomMappedStream.CreateMapView 
Copyright (c) 2010. All rights reserved.
This help was created by Doc-O-Matic sponsored by toolsfactory software inc.
What do you think about this topic? Send feedback!