# Writing to a local file

**URL:** <https://forum.kirupa.com/t/writing-to-a-local-file/211938>\
**Category:** flash\
**Created:** [January 6, 2007, 6:34pm UTC](https://forum.kirupa.com/t/writing-to-a-local-file/211938 "2007-01-06T18:34:48Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sammo](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/sammo/32/779_2.png) [@Sammo](https://forum.kirupa.com/u/Sammo)\
**Post date:** [January 6, 2007, 6:34pm UTC](https://forum.kirupa.com/t/writing-to-a-local-file/211938/1 "2007-01-06T18:34:48Z")

</div>

Can ActionScript write to a file during runtime? I want to be able to enable a save feature to a game.

I tried using JSFL:

```auto
str = "Hello";
MMExecute('FLfile.write("file:///C:/test.txt", ' + str + ')');

```

But that didn’t seem to work. MMExecute doesn’t do anything when I test the movie.
