# Text returns undefined|undefined

**URL:** <https://forum.kirupa.com/t/text-returns-undefined-undefined/283337>\
**Category:** Uncategorized\
**Created:** [March 5, 2009, 2:01am UTC](https://forum.kirupa.com/t/text-returns-undefined-undefined/283337 "2009-03-05T02:01:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![helpflash0](https://avatars.discourse-cdn.com/v4/letter/h/ecae2f/32.png) [@helpflash0](https://forum.kirupa.com/u/helpflash0)\
**Post date:** [March 5, 2009, 2:01am UTC](https://forum.kirupa.com/t/text-returns-undefined-undefined/283337/1 "2009-03-05T02:01:08Z")

</div>

i have the following code with 2 input text boxes called text1 and text2

i have 2 buttons called sendAnswer and getAnswer

i know the getAnswer will not be working yet, but i need to know why my textfile says undefined|undefined. Keeping in mind that this code is currently located on an external swf.

Any Ideas?

```auto
 
var myFile = mdm.Application.path+"myinfo1.txt";
 
var myString:String = _root.text1.text+"|"+_root.text2.text;
 
sendAnswer.onRelease = function() {
mdm.FileSystem.saveFile(myFile, myString)};
 
getAnswer.onRelease = function() {
myString = mdm.FileSystem.loadFile(myFile);}

```
