Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/FFileHelper
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static bool LoadFileToStringArrayWithPredicate
(
TArray< FString >& Result, |
Load a text file to an array of strings, filtered by a user-defined predicate. | Misc/FileHelper.h | |
static bool LoadFileToStringArrayWithPredicate
(
TArray< FString >& Result, |
Misc/FileHelper.h |
LoadFileToStringArrayWithPredicate(TArray< FString > &, const TCHAR *, TFunctionRef< bool(const FString &)>)
Description
Load a text file to an array of strings, filtered by a user-defined predicate. Supports all combination of ANSI/Unicode files and platforms.
| Name | LoadFileToStringArrayWithPredicate |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Misc/FileHelper.h |
| Include Path | #include "Misc/FileHelper.h" |
| Source | /Engine/Source/Runtime/Core/Private/Misc/FileHelper.cpp |
static bool LoadFileToStringArrayWithPredicate
(
TArray < FString > & Result,
const TCHAR * Filename,
TFunctionRef < bool> Predicate
)
Parameters
| Name | Remarks |
|---|---|
| Result | String representation of the loaded file |
| Filename | Name of the file to load |
| Predicate | Condition for whether or not to add the line to the array |
LoadFileToStringArrayWithPredicate(TArray< FString > &, const TCHAR *, TFunctionRef< bool(const FString &)>, EHashOptions)
| Name | LoadFileToStringArrayWithPredicate |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Misc/FileHelper.h |
| Include Path | #include "Misc/FileHelper.h" |
| Source | /Engine/Source/Runtime/Core/Private/Misc/FileHelper.cpp |
static bool LoadFileToStringArrayWithPredicate
(
TArray < FString > & Result,
const TCHAR * Filename,
TFunctionRef < bool> Predicate,
EHashOptions VerifyFlags
)