# How save UStruct with FFileHelper

**URL:** <https://forums.unrealengine.com/t/how-save-ustruct-with-ffilehelper/838609>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine, question\
**Created:** [April 2, 2023, 10:55am UTC](https://forums.unrealengine.com/t/how-save-ustruct-with-ffilehelper/838609 "2023-04-02T10:55:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![yualko](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@yualko](https://forums.unrealengine.com/u/yualko)\
**Post date:** [April 2, 2023, 10:55am UTC](https://forums.unrealengine.com/t/how-save-ustruct-with-ffilehelper/838609/1 "2023-04-02T10:55:00Z")

</div>

Hello. Please help me figure it out. The data is collected in the “FSceneObjectsStruct” structure. How can I save this structure to a file and then load it from the file?

The option with SaveGame is not suitable because when building the project it deletes sav files, and I need them to fill the level

USTRUCT(BlueprintType)  
struct FSceneObjectsStruct  
{  
GENERATED\_USTRUCT\_BODY();  
public:  
UPROPERTY(EditAnywhere, BLueprintReadWrite)  
FString Name;  
UPROPERTY(EditAnywhere, BLueprintReadWrite)  
FVector Location;  
UPROPERTY(EditAnywhere, BLueprintReadWrite)  
FRotator Rotation;  
UPROPERTY(EditAnywhere, BLueprintReadWrite)  
FVector Scale;  
UPROPERTY(EditAnywhere, BLueprintReadWrite)  
UClass\* BotCarClass;  
};

return FFileHelper::SaveStringToFile(FSceneObjectsStruct, \*SaveDirectory); Not working
