# External File Use

**URL:** <https://forums.unrealengine.com/t/external-file-use/676111>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine\
**Created:** [October 24, 2022, 3:55pm UTC](https://forums.unrealengine.com/t/external-file-use/676111 "2022-10-24T15:55:11Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![ZenLeviathan](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/zenleviathan/32/551307_2.png) [@ZenLeviathan](https://forums.unrealengine.com/u/ZenLeviathan)\
**Post date:** [October 24, 2022, 4:14pm UTC](https://forums.unrealengine.com/t/external-file-use/676111/2 "2022-10-24T16:14:33Z")

</div>

Hey @a.carter1182, I’ve also seen this kind of issue regarding the scope of android projects, so maybe the fix for them might work for you as well:

> [@How to access an external file in-game](https://forums.unrealengine.com/t/how-to-access-an-external-file-in-game/62203/2):
>
> Hi Mosel3y, If you look in AndroidFile.cpp in PathToAndroidPaths(), there are checks for valid paths to allow: if ((AllowLocal && AndroidPath.StartsWith(TEXT("/"))) || AndroidPath.StartsWith(GFontPathBase) || AndroidPath.StartsWith(TEXT("/system/etc/")) || AndroidPath.StartsWith(GExternalFilePath.Left(AndroidPath.Len()))) { // Absolute paths are only local. LocalPath = AndroidPath; AssetPath = AndroidPath; } Just change this to if (AllowLocal) and it should…

It seems Unreal has a few checks for the locality of the files. It seems that using something other than the FPaths might work, as this discussion thread describes:

> [@How to get external file with Fpaths?](https://forums.unrealengine.com/t/how-to-get-external-file-with-fpaths/436798/4):
>
> So if you’re trying to get a file from your computer in C++, you should be able to write something like this: FFileHelper::LoadFileToString(SaveTextA, \*"e:/drive/temp/text/textfile.txt";) And just get the file directly, instead of using FPaths. The point of FPaths is to help you get files from common places on any computer, regardless of installation location. If you know your file will always be at “e:/drive/temp/text/textfile.txt” then you could use what I posted above. Although you should k…

I hope some of these can help answer your question, let me know if it doesn’t!  
-Zen 🖖

---

_[View the full topic](https://forums.unrealengine.com/t/external-file-use/676111)._
