Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/FFileHelper
Description
Load a text file and invoke a visitor for each line. Supports all combination of ANSI/Unicode files and platforms.
| Name | LoadFileToStringWithLineVisitor |
| 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 LoadFileToStringWithLineVisitor
(
const TCHAR * Filename,
TFunctionRef < void> Visitor
)
Parameters
| Name | Remarks |
|---|---|
| Filename | Name of the file to load |
| Visitor | Visitor to invoke for each non-empty line in the file |