# FFileHelper::LoadFileToString sometimes works, sometimes doesn't on Oculus Quest

**URL:** <https://forums.unrealengine.com/t/ffilehelper-loadfiletostring-sometimes-works-sometimes-doesnt-on-oculus-quest/452807>\
**Category:** XR Development\
**Tags:** Oculus, unreal-engine, Android, file, question\
**Created:** [July 25, 2019, 9:36am UTC](https://forums.unrealengine.com/t/ffilehelper-loadfiletostring-sometimes-works-sometimes-doesnt-on-oculus-quest/452807 "2019-07-25T09:36:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Joost](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Joost](https://forums.unrealengine.com/u/Joost)\
**Post date:** [July 25, 2019, 9:36am UTC](https://forums.unrealengine.com/t/ffilehelper-loadfiletostring-sometimes-works-sometimes-doesnt-on-oculus-quest/452807/1 "2019-07-25T09:36:12Z")

</div>

Sometimes the string is empty and sometimes it loads it correctly. I can’t see any errors on the Quest or in the UE4 logs.

```
    FString path = "/sdcard/test/test.json";
	FString JsonString;
	FFileHelper::LoadFileToString(JsonString, *path);
```

---

<div class="post-metadata">

**Author:** ![Joost](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Joost](https://forums.unrealengine.com/u/Joost)\
**Post date:** [January 28, 2020, 12:59pm UTC](https://forums.unrealengine.com/t/ffilehelper-loadfiletostring-sometimes-works-sometimes-doesnt-on-oculus-quest/452807/2 "2020-01-28T12:59:41Z")

</div>

This was just user error. The file was being emptied accidentally.
