# Saving Data to an External File

**URL:** <https://forum.kirupa.com/t/saving-data-to-an-external-file/172468>\
**Category:** programming\
**Created:** [December 14, 2005, 6:04pm UTC](https://forum.kirupa.com/t/saving-data-to-an-external-file/172468 "2005-12-14T18:04:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gawain](https://avatars.discourse-cdn.com/v4/letter/g/3d9bf3/32.png) [@Gawain](https://forum.kirupa.com/u/Gawain)\
**Post date:** [December 14, 2005, 6:04pm UTC](https://forum.kirupa.com/t/saving-data-to-an-external-file/172468/1 "2005-12-14T18:04:56Z")

</div>

This is a pretty general topic, but as I in this case was interested in terms of a Highscore list, I thought I’d post it here.

So I found the old “[Displaying Data from an External File](http://www.kirupa.com/developer/mx/externaldata.htm)” tutorial, which I must say was surprisingly easy to do. And formating my highscores to match that syntax would be fairly easy. But how do I “write” the string back to the text file? I’m afraid it won’t be that simple, but my fingers are crossed. 🙂

If possible I’d like to work around XML, PHP, etc, not that PHP would be any problem as I’ve used that quite a lot. But I’m looking for the easiest possible way here, i.e. “how to store a simple text string to a text file from flash”. Any pointer or link to outside tutorial appreciated.

Thanks in advance 🙂
