FileOpenMode

Overview

Enumerated type that that indicates how to open a file.

You can use this type with FileHandle or File class to specify how they should open file:

var LogFile := Folder.UserLocal.CreateFile("log.txt", false);
var Handle := LogFile.Open(FileOpenMode.ReadWrite);
try
  Handle.Write([1, 2, 3, 4]);
finally
  Handle.Close;
  LogFile.Delete;
end;

Location


Value Description
Create
ReadOnly Allows only read operations.
ReadWrite Allows both read and write operations.