# External file based location/rotation. Possible or not?

**URL:** <https://forums.unrealengine.com/t/external-file-based-location-rotation-possible-or-not/328406>\
**Category:** Blueprint\
**Tags:** unreal-engine, CPP, Blueprint, question\
**Created:** [August 12, 2015, 8:35am UTC](https://forums.unrealengine.com/t/external-file-based-location-rotation-possible-or-not/328406 "2015-08-12T08:35:14Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![ScottSpadea](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/scottspadea/32/1194682_2.png) [@ScottSpadea](https://forums.unrealengine.com/u/ScottSpadea)\
**Post date:** [August 12, 2015, 12:29pm UTC](https://forums.unrealengine.com/t/external-file-based-location-rotation-possible-or-not/328406/2 "2015-08-12T12:29:10Z")

</div>

you can use arrays of vectors, lerps, and setActorLocation / SetActorRotation nodes to animate objects:

> **[A new, community-hosted Unreal Engine Wiki](https://forums.unrealengine.com/t/a-new-community-hosted-unreal-engine-wiki/141494)**
>
> After over a year in maintenance mode, the official Unreal Engine Wiki is now permanently offline. These resources now live on a new community-run Unreal Engine Community Wiki — ue4community.wiki! You will be able to find content from the official...

and you can load that vector data from a text file using functions found in CoreMisc.h:

```
FFileHelper::SaveStringToFile()
FFileHelper::LoadFileToString()

```

[https://docs.unrealengine.com/latest/INT/API/Runtime/Core/Misc/FFileHelper/index.html](https://docs.unrealengine.com/latest/INT/API/Runtime/Core/Misc/FFileHelper/index.html)

once you load the file into a string, you can parse it into an array of strings, splitting it at every comma, by using ParseIntoArray:

> **[Parse Into Array](https://docs.unrealengine.com/4.27/en-US/BlueprintAPI/Utilities/String/ParseIntoArray/)**
>
> Parse Into Array

> **[How can I write to text files?](https://forums.unrealengine.com/questions/27254/writing-to-text-files.html)**
>
> I'm working on a custom, artist-editable UI solution to replace Slate on our project, and as part of that, I need to write to text files (since we edit our UI layouts at runtime, and AFAIK there's no way to make permanent changes to the level objects...

> **[Read and Write data from text file](https://forums.unrealengine.com/questions/88289/read-and-write-data-from-text-file.html)**
>
> Is it possible to read and write data from a text file for example use the text files data ( exampletext ) and store it as a variable Player-\>Name = file; out put = hello, exampletext if that is understandable 😕

---

_[View the full topic](https://forums.unrealengine.com/t/external-file-based-location-rotation-possible-or-not/328406)._
