# \[AS3\] Loading 2D array from external file

**URL:** https://forum.kirupa.com/t/as3-loading-2d-array-from-external-file/273816
**Category:** flash
**Created:** [October 21, 2008, 10:03am UTC](https://forum.kirupa.com/t/as3-loading-2d-array-from-external-file/273816 "2008-10-21T10:03:51Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Valaran](https://avatars.discourse-cdn.com/v4/letter/v/ee59a6/32.png) [@Valaran](https://forum.kirupa.com/u/Valaran)
#### Post date: [October 21, 2008, 10:03am UTC](https://forum.kirupa.com/t/as3-loading-2d-array-from-external-file/273816/1 "2008-10-21T10:03:51Z")

</div>

Hello,

This is not really a question about loading, its a question about saving. Lets say I have this 2D array, used in a certain project of mine, and I want to be able to load it from an external file later on, so naturally I’d place it in a file of my choosing, but what would be the easiest to deal with, from a loading perspective\*? Should I save it as a XML file and modify it in any specific manner, or perhaps just raw data in a .txt document? Other suggestions are welcome as well.

- Meaning, if I saved it as raw data (for example) I could get to do more complex parsing than dealing with XML.

Thanks for your time.
