# Trouble reading text file properly

**URL:** <https://forum.kirupa.com/t/trouble-reading-text-file-properly/222816>\
**Category:** Uncategorized\
**Created:** [April 17, 2007, 8:09am UTC](https://forum.kirupa.com/t/trouble-reading-text-file-properly/222816 "2007-04-17T08:09:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ABargnani](https://avatars.discourse-cdn.com/v4/letter/a/eb9ed0/32.png) [@ABargnani](https://forum.kirupa.com/u/ABargnani)\
**Post date:** [April 17, 2007, 8:09am UTC](https://forum.kirupa.com/t/trouble-reading-text-file-properly/222816/1 "2007-04-17T08:09:33Z")

</div>

Hello, thanks to all who help ![](http://www.dreamincode.net/forums/style_emoticons/default/biggrin.gif) .

I am creating a program that requires one to load a text file with variables using:

```auto

textFile="hello.txt";
var here = this
varReceiver = new LoadVars();
varReceiver.load(textFile);
varReceiver.onLoad = function() {
    question=this.question1;
    answer=this.answer1;
}

```

with the text file as follows:

```auto

&question1=hello&
&answer1=one + one is two&

```

I wish the program read, for example the question1 variable from file as: “hello”  
and answer1 as: “one + one is two”.

But, the “+” sign is not read by flash. Simply, the answer1 variable is: “one one is two”.

I found out that the “+” is not the only symbol that flash doesn’t read from the text file, but also “%”, and I’m sure there are others.

Is there a way to read a text file which include + and % etc.?

The .fla is found in the zip file and .txt file is also attached.

Thanks so much!
