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