# Adding text infront of loaded .txt file

**URL:** <https://forum.kirupa.com/t/adding-text-infront-of-loaded-txt-file/294513>\
**Category:** flash\
**Created:** [August 15, 2009, 10:26am UTC](https://forum.kirupa.com/t/adding-text-infront-of-loaded-txt-file/294513 "2009-08-15T10:26:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bq86](https://avatars.discourse-cdn.com/v4/letter/b/e56c9b/32.png) [@Bq86](https://forum.kirupa.com/u/Bq86)\
**Post date:** [August 15, 2009, 10:26am UTC](https://forum.kirupa.com/t/adding-text-infront-of-loaded-txt-file/294513/1 "2009-08-15T10:26:40Z")

</div>

Hi,  
I want to load a txt/dat file into flash - the file looks like this:

> 

\<p\>testujemyTRESC\</p\>

Now, loading this text by loadText i need it to begin with “n=”. Is it possible to add for example “n=” in front of the text outside the text ediotr? I can get the data loaded without the “n=” mark by a code like this:

> 

var lv:LoadVars = new LoadVars();

lv.onData = function(content) {  
textarea.text = content;  
textarea.html = true;  
}

If I do so the html tags are not working.
