RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
SysUtils.fmOpenRead Constant

Specifies a file should be opened for reading only.

Pascal
fmOpenRead = $0000;
C++
fmOpenRead = 0x0000;

SysUtils

fmOpenRead is one of the values you can assign to FileMode. It is also one of the attributes assignable in the Create. The TFileStream is used to read and write files. When you assign the value fmOpenRead, subsequent calls to Reset open files for reading only.

Note: You must use this value when you plan to read a read only file - using fmOpenReadWrite will cause the open to fail because it will attempt and fail to get write access.
 

fmOpenReadWrite 

fmOpenWrite 

faShareCompat 

faShareDenyNone 

faShareDenyRead 

faShareDenyWrite 

faShareExclusive 

Reset 

FileMode 

Create

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!