# loadVariabe

**URL:** <https://forum.kirupa.com/t/loadvariabe/211221>\
**Category:** flash\
**Created:** [December 28, 2006, 6:52pm UTC](https://forum.kirupa.com/t/loadvariabe/211221 "2006-12-28T18:52:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Takashy](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/takashy/32/1985_2.png) [@Takashy](https://forum.kirupa.com/u/Takashy)\
**Post date:** [December 28, 2006, 6:52pm UTC](https://forum.kirupa.com/t/loadvariabe/211221/1 "2006-12-28T18:52:20Z")

</div>

Hi all,I saw somewhere a tutorial and it uses this

loadVariablesNum(“text.txt”, 0);

to load a text file … well,thats nice, but I wanted to ask how I could add a var to the name…

like, I type a name into a textbox and lets say thats var X… and press a button… than I want it to load the file “the name that i typed , the X var”.txt

i tryed something like this

loadVariablesNum(x".txt", 0); but that does not work, it just gives me always some erros if I change anything in that… I wanted to ask if someone could help me with that. Because I dont have any other idead how that could work… ☹

Or maybe thers another way where i can have vars in the name…

I hope that you understand what I mean, sry for my bad eng. -.-;
