# loadVariablesNum

**URL:** <https://forum.kirupa.com/t/loadvariablesnum/157810>\
**Category:** Uncategorized\
**Created:** [August 4, 2005, 1:53pm UTC](https://forum.kirupa.com/t/loadvariablesnum/157810 "2005-08-04T13:53:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![CEOofAEP](https://avatars.discourse-cdn.com/v4/letter/c/7cd45c/32.png) [@CEOofAEP](https://forum.kirupa.com/u/CEOofAEP)\
**Post date:** [August 4, 2005, 1:53pm UTC](https://forum.kirupa.com/t/loadvariablesnum/157810/1 "2005-08-04T13:53:00Z")

</div>

Greetings, all!

I have a relatively simple task that I can’t get to work.  
I want to read values from a textfile on the fly.

The textfile is called “colours.txt” and contains the following text:

> test=Hello  
> I am using the following code to read it (the code sits in the first layer [Actions]):  
> var test = “x”;  
> loadVariablesNum(“colours.txt”, 0);  
> trace("test: " + test);  
> When I execute the file, the trace shows “test: x”… can anyone tell me why? What am I doing wrong?  
> Thanks in advance!  
> ~Marcel
