# Saving/loading external text files

**URL:** <https://forum.kirupa.com/t/saving-loading-external-text-files/111542>\
**Category:** Uncategorized\
**Created:** [May 28, 2004, 12:46am UTC](https://forum.kirupa.com/t/saving-loading-external-text-files/111542 "2004-05-28T00:46:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Prophet](https://avatars.discourse-cdn.com/v4/letter/p/838e76/32.png) [@Prophet](https://forum.kirupa.com/u/Prophet)\
**Post date:** [May 28, 2004, 12:46am UTC](https://forum.kirupa.com/t/saving-loading-external-text-files/111542/1 "2004-05-28T00:46:07Z")

</div>

i know you can load them in as variables… but is there anyway SAVE a variable as a text file (overwriting old one as well)

cheers,

Prophet.

---

<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:** [May 28, 2004, 1:26pm UTC](https://forum.kirupa.com/t/saving-loading-external-text-files/111542/2 "2004-05-28T13:26:09Z")

</div>

I had the same problem. Flash lets you load text in from a file but it won’t let you save to a text file. But there are ways round it. You can get Flash to create a cookie and send text into there. What you need is to create a shared object:

myLocal\_so = sharedobject.getLocal(“FlashCookie”,"/");

Then to send text to it:

myLocal\_so.data.savegame = yourtext;

To get it to save text on demand:

myLocal\_so.flush();

Hope this works
