# MX loading vars from a txt

**URL:** https://forum.kirupa.com/t/mx-loading-vars-from-a-txt/118247
**Category:** Uncategorized
**Created:** [August 4, 2004, 12:23am UTC](https://forum.kirupa.com/t/mx-loading-vars-from-a-txt/118247 "2004-08-04T00:23:33Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Ryall](https://avatars.discourse-cdn.com/v4/letter/r/53a042/32.png) [@Ryall](https://forum.kirupa.com/u/Ryall)
#### Post date: [August 4, 2004, 12:23am UTC](https://forum.kirupa.com/t/mx-loading-vars-from-a-txt/118247/1 "2004-08-04T00:23:33Z")

</div>

ok I have a load vars function that looks for a txt file and grabs data from it, right now they have to be in the same dir. I’d like to have the txt in the root of my server and then be able to link from any dir in the site…

I have: (“dataValues.txt”)

what should I add before it, I thought maybe a full URL, but no, is it something like ("…/dataValues.txt"), basically I want to make the link global for the site - I dont have access to the files right now so I cant just try a bunch of stuff myself. :{

Peace

---

<div class="post-metadata">

### Author: ![Ryall](https://avatars.discourse-cdn.com/v4/letter/r/53a042/32.png) [@Ryall](https://forum.kirupa.com/u/Ryall)
#### Post date: [August 4, 2004, 12:32am UTC](https://forum.kirupa.com/t/mx-loading-vars-from-a-txt/118247/2 "2004-08-04T00:32:24Z")

</div>

or can I somehow put it the load vars after/in a getURL() in order to retrieve the data??
