Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/FFileHelper
Description
Load the given ANSI text file to an array of strings - one FString per line of the file. Intended for use in simple text parsing actions
| Name | LoadANSITextFileToStrings |
| 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 LoadANSITextFileToStrings
(
const TCHAR * InFilename,
IFileManager * InFileManager,
TArray < FString > & OutStrings
)
bool true if successful, false if not
Parameters
| Name | Remarks |
|---|---|
| InFilename | The text file to read, full path |
| InFileManager | The filemanager to use - NULL will use &IFileManager::Get() |
| OutStrings | The array of FStrings to fill in |