Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/IPlatformFile
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual FFileOpenAsyncResult OpenAsyncRead
(
const TCHAR* Filename, |
Open a file for async reading. This call does not hit the disk or block. | GenericPlatform/GenericPlatformFile.h | |
virtual IAsyncReadFileHandle * OpenAsyncRead
(
const TCHAR* Filename, |
Open a file for async reading. This call does not hit the disk or block. | GenericPlatform/GenericPlatformFile.h |
OpenAsyncRead(const TCHAR *, EOpenReadFlags)
Description
Open a file for async reading. This call does not hit the disk or block.
| Name | OpenAsyncRead |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/GenericPlatform/GenericPlatformFile.h |
| Include Path | #include "GenericPlatform/GenericPlatformFile.h" |
| Source | /Engine/Source/Runtime/Core/Private/GenericPlatform/GenericPlatformFile.cpp |
virtual FFileOpenAsyncResult OpenAsyncRead
(
const TCHAR * Filename,
EOpenReadFlags Flags
)
The return value will either contain the valid file handle or an error message.
Parameters
| Name | Remarks |
|---|---|
| Flags | Allows specialization of the open operation, |
See Also
-
EReadFlags
-
FFileOpenAsyncResult
OpenAsyncRead(const TCHAR *, bool)
Description
Open a file for async reading. This call does not hit the disk or block.
| Name | OpenAsyncRead |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/GenericPlatform/GenericPlatformFile.h |
| Include Path | #include "GenericPlatform/GenericPlatformFile.h" |
| Source | /Engine/Source/Runtime/Core/Private/GenericPlatform/GenericPlatformFile.cpp |
virtual IAsyncReadFileHandle * OpenAsyncRead
(
const TCHAR * Filename,
bool bAllowWrite
)
Close the file by delete'ing the handle. A non-null return value does not mean the file exists, since that may not be determined yet.
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. |