Navigation
Unreal Engine C++ API Reference > Runtime > Core > HAL > IFileManager
- IFileManager::CreateFileReader()
- FFileManagerGeneric::CreateFileReader()
References
Module | Core |
Header | /Engine/Source/Runtime/Core/Public/HAL/FileManager.h |
Include | #include "HAL/FileManager.h" |
FArchive &42; CreateFileReader
&40;
const TCHAR &42; Filename,
uint32 ReadFlags
&41;
Remarks
Opens a file for reading and create an FArchive which can be used to read from it. Returns a pointer to an FArchive when successful and a nullptr if the operation failed. Note that it is up to the caller to delete the FArchive when done.
Parameters
Name | Description |
---|---|
Filename | Path to the file to open |
ReadFlags | An optional bitfield of optional flags. For flag values see EFileRead |