RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
SysUtils.fmOpenReadWrite Constant

Specifies a file should be opened for reading and writing.

Pascal
fmOpenReadWrite = $0002;
C++
fmOpenReadWrite = 0x0002;

fmOpenReadWrite 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 fmOpenReadWrite, subsequent calls to Reset open files for reading and writing.

Note: Do not assign this value when you plan to read a read only file - the open will fail because write access will be attempted but be denied.
 

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