# Resource paths

**URL:** <https://forum.defold.com/t/resource-paths/79638>\
**Category:** Questions\
**Created:** [February 1, 2025, 12:57pm UTC](https://forum.defold.com/t/resource-paths/79638 "2025-02-01T12:57:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![SpoonGod](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/spoongod/32/38545_2.png) [@SpoonGod](https://forum.defold.com/u/SpoonGod)\
**Post date:** [February 1, 2025, 12:57pm UTC](https://forum.defold.com/t/resource-paths/79638/1 "2025-02-01T12:57:19Z")

</div>

I am making a game that saves leaderboard data to a text file so that it is saved when the game is closed.  
I am using io.open() and the first parameter i am using is “/home/josh/DeadHorde/data/data.txt”.  
This path is personalised for my computer, when i build it and run it on a different computer it wont work. How do i find the path to the file that is in my project file (DeadHorde)?

gemini told me to use sys.get\_resource\_path() but it doesnt like that and the ai insists im trying to build for html5 so i gave up.

---

<div class="post-metadata">

**Author:** ![Potota](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/potota/32/33404_2.png) [@Potota](https://forum.defold.com/u/Potota)\
**Post date:** [February 2, 2025, 6:32am UTC](https://forum.defold.com/t/resource-paths/79638/2 "2025-02-02T06:32:31Z")

</div>

`sys.get_save_file()` is the right way to do it. See the manual page about working with files:

> **[Working with files](https://defold.com/manuals/file-access/)**
>
> This manual explains how to save and load files and perform other kinds of file operations.
