FFileHelper::LoadANSITextFileToStrings

Load the given ANSI text file to an array of strings - one [FString](API\Runtime\Core\Containers\FString) per line of the file.

Windows
MacOS
Linux

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/Misc/FileHelper.h

Include

#include "Misc/FileHelper.h"

Source

/Engine/Source/Runtime/Core/Private/Misc/FileHelper.cpp

Syntax

static bool LoadANSITextFileToStrings
(
    const TCHAR * InFilename,
    IFileManager * InFileManager,
    TArray< FString > & OutStrings
)

Remarks

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

Returns

bool true if successful, false if not

Parameters

Parameter

Description

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

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss