IPlatformFile::OpenRead

Override Hierarchy

Syntax

IFileHandle * OpenRead
(
    const TCHAR * Filename,
    bool bAllowWrite
)

Remarks

Attempt to open a file for reading.

If successful will return a non-nullptr pointer. Close the file by delete'ing the handle.

Returns

If successful will return a non-nullptr pointer. Close the file by delete'ing the handle.

Parameters

Parameter

Description

Filename

file to be opened

bAllowWrite

(applies to certain platforms only) whether this file is allowed to be written to by other processes. This flag is needed to open files that are currently being written to as well.

References

Module

Core

Header

Runtime/Core/Public/GenericPlatform/GenericPlatformFile.h