FFileHelper::LoadFileToString

Load a text file to an [FString](API\Runtime\Core\Containers\FString).

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 LoadFileToString
(
    FString & Result,
    const TCHAR * Filename,
    EHashOptions VerifyFlags,
    uint32 ReadFlags
)

Remarks

Load a text file to an FString. Supports all combination of ANSI/Unicode files and platforms.

Load a text file to an FString. Supports all combination of ANSI/Unicode files and platforms.

Parameters

Parameter

Description

Result

String representation of the loaded file

Filename

Name of the file to load

VerifyFlags

Flags controlling the hash verification behavior ( see EHashOptions )

Result

string representation of the loaded file

Filename

name of the file to load

VerifyFlags

flags controlling the hash verification behavior ( see EHashOptions )

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