# External text file formatting

**URL:** <https://forum.kirupa.com/t/external-text-file-formatting/248100>\
**Category:** Uncategorized\
**Created:** [January 3, 2008, 9:32pm UTC](https://forum.kirupa.com/t/external-text-file-formatting/248100 "2008-01-03T21:32:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![abhikumar](https://avatars.discourse-cdn.com/v4/letter/a/67e7ee/32.png) [@abhikumar](https://forum.kirupa.com/u/abhikumar)\
**Post date:** [January 3, 2008, 9:32pm UTC](https://forum.kirupa.com/t/external-text-file-formatting/248100/1 "2008-01-03T21:32:15Z")

</div>

[COLOR=black]here is how im trying to load a text file:[/COLOR]  
[COLOR=black]loadText = new LoadVars();  
loadText.load("[/COLOR][[COLOR=black]http://www.tenbyten.org/Data/Now/words.txt[/COLOR]](http://www.tenbyten.org/Data/Now/words.txt)[COLOR=black]");  
loadText.onLoad = function() {  
news\_txt.text = this;  
};[/COLOR]  
[COLOR=black]words.txt has text arranged like this:  
iraq  
killed  
military  
american  
…  
…  
news\_txt should contain some random words from the text file (which is external and i can’t edit it)-- so is there anyway i can import random lines from the file. right now, the news\_txt displays (iraq0Akilled0Amilitary0Aamerican…) i want duplicate movie clips of news\_txt to display one word each from this file (randomly). [/COLOR]  
[COLOR=black]also, why i am getting “0A” between every keyword when i render the flash file- any idea ?? (iraq0Akilled0Amilitary0Aamerican…) please help.[/COLOR]  
[COLOR=black][/COLOR]
