# How to get external file with Fpaths?

**URL:** <https://forums.unrealengine.com/t/how-to-get-external-file-with-fpaths/436798>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine\
**Created:** [October 31, 2018, 11:49pm UTC](https://forums.unrealengine.com/t/how-to-get-external-file-with-fpaths/436798 "2018-10-31T23:49:38Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![TestyRabbit](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TestyRabbit](https://forums.unrealengine.com/u/TestyRabbit)\
**Post date:** [November 4, 2018, 6:49pm UTC](https://forums.unrealengine.com/t/how-to-get-external-file-with-fpaths/436798/4 "2018-11-04T18:49:41Z")

</div>

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 know that using hard-coded absolute paths like that usually isn’t a good idea, especially when it is not even on the C: drive.

---

_[View the full topic](https://forums.unrealengine.com/t/how-to-get-external-file-with-fpaths/436798)._
