# Loading an array from .txt file

**URL:** <https://forum.kirupa.com/t/loading-an-array-from-txt-file/191864>\
**Category:** flash\
**Created:** [June 23, 2006, 2:56pm UTC](https://forum.kirupa.com/t/loading-an-array-from-txt-file/191864 "2006-06-23T14:56:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ferdi](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/ferdi/32/689_2.png) [@Ferdi](https://forum.kirupa.com/u/Ferdi)\
**Post date:** [June 23, 2006, 2:56pm UTC](https://forum.kirupa.com/t/loading-an-array-from-txt-file/191864/1 "2006-06-23T14:56:46Z")

</div>

Hello Kirupians!

I’m currently trying to figure out how to load an array from a .txt file into my flash presentation.  
The point is that people need to be able to edit a list of products without needing the .FLA movie (or they will mess it up).

The .txt file looks as followed:

```php

[["Company1","3"],["Brandname1","Productname1","Productname2","Productname3"],["Brandname2","Productname1","Productname2"]],
[["Company2","4"],["Brandname1","Productname1","Productname2"],["Brandname2","Productname1","Productname1"]]

```

And this is where I want it to be.  
But I know I can’t just open a file and put it down there, so does anyone have a suggestion how to do this?

```php

var LIST:Array = [
  *SHOULD BE IMPORTED HERE*
];

```

I would REALLY appreciate it.  
Thanks a lot in advance,

Ferdi
