# Read from txt file? or better?

**URL:** <https://forum.kirupa.com/t/read-from-txt-file-or-better/66092>\
**Category:** Uncategorized\
**Created:** [October 2, 2004, 12:13pm UTC](https://forum.kirupa.com/t/read-from-txt-file-or-better/66092 "2004-10-02T12:13:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![VoS](https://avatars.discourse-cdn.com/v4/letter/v/22d042/32.png) [@VoS](https://forum.kirupa.com/u/VoS)\
**Post date:** [October 2, 2004, 12:13pm UTC](https://forum.kirupa.com/t/read-from-txt-file-or-better/66092/1 "2004-10-02T12:13:27Z")

</div>

hey i have a question (-:

## i have a file called soundList.txt with some text in it, for example

## 1.mp3 2.mp3 3.mp3 4.mp3 …

the text file changes in lenght from time to time (as new .mp3s are added or deleteed)  
but it will be 1 thing per line …  
now i want to read this into an array called “soundList” in flash… help :cowboy:

or if any of you have any better ideas im open for suggestions, but keep in mind i want it as simple as possible ( im getting to xml stuff but dont have time for it yet and i need this to work now)

Thanks

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [October 2, 2004, 5:59pm UTC](https://forum.kirupa.com/t/read-from-txt-file-or-better/66092/2 "2004-10-02T17:59:35Z")

</div>

Sorry best way -\> xml, u load .xml file and can count for nodes, in txt is harder, see examples for img’s names loaded over xml , is the same think
