# Reading a local text file (or XML) to an array

**URL:** <https://forum.kirupa.com/t/reading-a-local-text-file-or-xml-to-an-array/255891>\
**Category:** flash\
**Created:** [March 27, 2008, 10:58pm UTC](https://forum.kirupa.com/t/reading-a-local-text-file-or-xml-to-an-array/255891 "2008-03-27T22:58:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Marmut80](https://avatars.discourse-cdn.com/v4/letter/m/b38774/32.png) [@Marmut80](https://forum.kirupa.com/u/Marmut80)\
**Post date:** [March 27, 2008, 10:58pm UTC](https://forum.kirupa.com/t/reading-a-local-text-file-or-xml-to-an-array/255891/1 "2008-03-27T22:58:28Z")

</div>

Hey everybody,

I’m want to access either a txt-file or a xml-file containing some data for an array.

The txt(xml)-file will be local on the same position as the SWF. It’s for a word game that should be configurable easily through changing only the txt(xml)-file and it’ll not be used mainly online, therefore its important that it will read a local file.

How to take data from a txt(xml)-file and insert it into an array in Flash?

Thankful for help!
