# ゲーム中にテキストファイルをロードまたは保存するには？

**URL:** <https://forums.unrealengine.com/t/topic/348401>\
**Category:** Blueprint\
**Tags:** unreal-engine, Blueprint, question\
**Created:** [February 23, 2016, 1:41pm UTC](https://forums.unrealengine.com/t/topic/348401 "2016-02-23T13:41:11Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![gottu](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@gottu](https://forums.unrealengine.com/u/gottu)\
**Post date:** [February 23, 2016, 1:41pm UTC](https://forums.unrealengine.com/t/topic/348401/1 "2016-02-23T13:41:11Z")

</div>

ゲーム中にたとえばcsvファイルからデータを取り込んだり、csvデータに保存したりしたいのですが、参考になるサイト、ページ等ありましたら教えてください。

---

<div class="post-metadata">

**Author:** ![yy\_naka](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@yy\_naka](https://forums.unrealengine.com/u/yy_naka)\
**Post date:** [February 23, 2016, 4:27pm UTC](https://forums.unrealengine.com/t/topic/348401/2 "2016-02-23T16:27:50Z")

</div>

私が調べた範囲では、ブループリントでのファイル操作はできなさそうでした。  
C++にはなってしまいますが、公式のWikiにドキュメントがあります。

> **[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...

> **[FFileHelper::SaveStringToFile](https://docs.unrealengine.com/4.27/en-US/API/Runtime/Core/Misc/FFileHelper/SaveStringToFile/)**
>
> Write the \[FString\](API\\Runtime\\Core\\Containers\\FString) to a file.

> **[LoadFileToString](https://docs.unrealengine.com/4.27/en-US/API/Runtime/Core/Misc/FFileHelper/LoadFileToString/)**
>
> Overload list

---

<div class="post-metadata">

**Author:** ![nullponull](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@nullponull](https://forums.unrealengine.com/u/nullponull)\
**Post date:** [February 23, 2016, 8:45pm UTC](https://forums.unrealengine.com/t/topic/348401/3 "2016-02-23T20:45:17Z")

</div>

バイナリ形式でよければ、SaveGameが使えます。  
ロードとセーブの両方が行えます。

yy\_nakaさんの回答の通りそれ以外ではC++を使わないといけないと思います。

---

<div class="post-metadata">

**Author:** ![gottu](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@gottu](https://forums.unrealengine.com/u/gottu)\
**Post date:** [February 24, 2016, 9:38am UTC](https://forums.unrealengine.com/t/topic/348401/4 "2016-02-24T09:38:28Z")

</div>

ありがとうございます。試してみます。
