RAD Studio VCL Reference
SysUtils.fmOpenRead Constant

Specifies a file should be opened for reading only.

fmOpenRead = $0000;
fmOpenRead = 0x0000;

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.

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!