FFileHelper::SaveStringToFile

Write the [FString](API\Runtime\Core\Containers\FString) to a 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 SaveStringToFile
(
    const FString & String,
    const TCHAR * Filename,
    EEncodingOptions EncodingOptions,
    IFileManager * FileManager,
    uint32 WriteFlags
)

Remarks

Write the FString to a file. Supports all combination of ANSI/Unicode files and platforms.

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