Writing to a local file

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:

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.