Shared modes available for each open mode Open Mode The following table shows shared modes that are available for each open mode. Note that the share mode you can use depends on which open mode you used. No attempt is made to prevent other applications from reading from or writing to the file. Other applications can open the file for writing but not for reading (VCL applications only). Other applications can open the file for reading but not for writing. Other applications can not open the file for any reason. Sharing is compatible with the way FCBs are opened (VCL applications only).įor more information about File Control Block structure, see The FCB Structure in the MSDN Library. The share mode can be one of the following values with the restrictions listed below: Open the file to modify the current contents rather than replace them. Writing to the file completely replaces the current contents. If a file with the given name exists, open the file in write mode. The open mode must be one of the following values:Ĭreate a file with the given name. The Mode parameter consists of an open mode and a share mode OR'ed together. The Mode parameter specifies how the file should be opened when creating the file stream. _fastcall TFileStream ( const AnsiString FileName, Word Mode )
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |