Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/IFileHandle
Description
Read bytes from the file.
If BytesToRead is larger than the bytes remaining in the file from the current read position the Read() will return true if the underlying file read could read all remaining bytes.
Derived Overrides
| Name | Read |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/GenericPlatform/GenericPlatformFile.h |
| Include Path | #include "GenericPlatform/GenericPlatformFile.h" |
bool Read
(
uint8 * Destination,
int64 BytesToRead
)
true if the operation completed successfully. Returns false if a read is attempted while the read position is already at the end of the file.
Parameters
| Name | Remarks |
|---|---|
| Destination | Buffer to holds the results, should be at least BytesToRead in size. |
| BytesToRead | Number of bytes to read into the destination. |