Navigation
Unreal Engine C++ API Reference > Runtime > Core > Misc
References
Module | Core |
Header | /Engine/Source/Runtime/Core/Public/Misc/FileHelper.h |
Include | #include "Misc/FileHelper.h" |
Syntax
struct FFileHelper
Functions
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
void | BufferToString
(
FString& Result, |
Load a text file to an FString. |
![]() ![]() |
bool | CreateBitmap
(
const TCHAR* Pattern, |
Saves a 24/32Bit BMP file to disk for debug image dump purposes |
![]() ![]() |
void | GenerateDateTimeBasedBitmapFilename
(
const FString& Pattern, |
Generates the next unique bitmap filename with a specified extension |
![]() ![]() |
bool | GenerateNextBitmapFilename
(
const FString& Pattern, |
Generates the next unique bitmap filename with a specified extension |
![]() ![]() |
bool | IsFilenameValidForSaving
(
const FString& Filename, |
Checks to see if a filename is valid for saving. |
![]() ![]() |
bool | LoadANSITextFileToStrings
(
const TCHAR* InFilename, |
Load the given ANSI text file to an array of strings - one FString per line of the file. |
![]() ![]() |
bool | LoadFileToArray
(
TArray64< uint8 >& Result, |
Load a binary file to a dynamic array with two uninitialized bytes at end as padding. |
![]() ![]() |
bool | LoadFileToArray
(
TArray< uint8 >& Result, |
Load a binary file to a dynamic array with two uninitialized bytes at end as padding. |
![]() ![]() |
bool | LoadFileToString
(
FString& Result, |
Load a text file to an FString. |
![]() ![]() |
bool | LoadFileToString
(
FString& Result, |
Load a text file to an FString. |
![]() ![]() |
bool | LoadFileToString
(
FString& Result, |
Load a text file to an FString. |
![]() ![]() |
bool | LoadFileToStringArray
(
TArray< FString >& Result, |
Load a text file to an array of strings. |
![]() ![]() |
bool | LoadFileToStringArrayWithPredicate
(
TArray< FString >& Result, |
Load a text file to an array of strings, filtered by a user-defined predicate. |
![]() ![]() |
bool | LoadFileToStringWithLineVisitor
(
const TCHAR* Filename, |
Load a text file and invoke a visitor for each line. |
![]() ![]() |
bool | SaveArrayToFile
(
TArrayView< const uint8 > Array, |
Save a binary array to a file. |
![]() ![]() |
bool | SaveArrayToFile
(
const TArray64< uint8 >& Array, |
Save a binary array to a file. |
![]() ![]() |
bool | SaveStringArrayToFile
(
const TArray< FString >& Lines, |
Write the FString to a file. |
![]() ![]() |
bool | SaveStringToFile
(
FStringView String, |
Write the FString to a file. |
Enums
Type | Name | Description | |
---|---|---|---|
![]() |
EColorChannel | ||
![]() |
EEncodingOptions | ||
![]() |
EHashOptions |
Deprecated Functions
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
PRAGMA_DISABLE_DEPRECATION_WARNINGSbool | CreateBitmap
(
const TCHAR* Pattern, |
EChannelMask has been deprecated in favor of EColorChannel, please use the other CreateBitmap() method. |
![]() ![]() |
bool | LoadFileToStringArray
(
TArray< FString >& Result, |
LoadFileToStringArray no longer supports VerifyFlags. You can use UE::String::ParseLines to split up a string loaded with LoadFileToString |
![]() ![]() |
bool | LoadFileToStringArrayWithPredicate
(
TArray< FString >& Result, |
LoadFileToStringArrayWithPredicate no longer supports VerifyFlags. You can use UE::String::ParseLines to split up a string loaded with LoadFileToString |