Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/FPlatformFileOpenLog
Description
Attempt to open a file for reading. Please consider using the new overload that takes EReadFlags instead of bools as parameters.
Virtual Inheritance
- IPlatformFile::OpenRead → FPlatformFileOpenLog::OpenRead
| Name | OpenRead |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/HAL/IPlatformFileOpenLogWrapper.h |
| Include Path | #include "HAL/IPlatformFileOpenLogWrapper.h" |
virtual IFileHandle * OpenRead
(
const TCHAR * Filename,
bool bAllowWrite
)
If successful will return a non-nullptr pointer. Close the file by deleting the handle.
Parameters
| Name | Remarks |
|---|---|
| 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. |