FPakPlatformFile::OpenRead

Attempt to open a file for reading.

Choose your operating system:

Windows

macOS

Linux

Override Hierarchy

IPlatformFile::OpenRead()

FPakPlatformFile::OpenRead()

References

Module

PakFile

Header

/Engine/Source/Runtime/PakFile/Public/IPlatformFilePak.h

Include

#include "IPlatformFilePak.h"

Source

/Engine/Source/Runtime/PakFile/Private/IPlatformFilePak.cpp

Syntax

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

Remarks

Attempt to open a file for reading.

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.