Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/FUnixPlatformFile
Description
Attempt to open a file for writing. NOTE: Physical IPlatformFile Implementations should override exactly one overload of OpenWrite, preferrably the version with flags. This overload will be removed in a future revision. This default implementation calls the Flags overload.
Virtual Inheritance
- IPlatformFile::OpenWrite → FUnixPlatformFile::OpenWrite
| Name | OpenWrite |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Unix/UnixPlatformFile.h |
| Include Path | #include "Unix/UnixPlatformFile.h" |
| Source | /Engine/Source/Runtime/Core/Private/Unix/UnixPlatformFile.cpp |
virtual IFileHandle * OpenWrite
(
const TCHAR * Filename,
bool bAppend,
bool bAllowRead
)
If successful will return a non-nullptr pointer. Close the file by deleting the handle.
Parameters
| Name | Remarks |
|---|---|
| Filename | The file to be opened |
| bAppend | Append to file. |
| bAllowRead | Allow the returned handle to be read from. On certain platforms allow other handles/processes to read from this file as well. |