# Writing to a file works when I publish preview, but not as a projector exe. Why?

**URL:** https://forum.kirupa.com/t/writing-to-a-file-works-when-i-publish-preview-but-not-as-a-projector-exe-why/300169
**Category:** Uncategorized
**Created:** [November 17, 2009, 3:00am UTC](https://forum.kirupa.com/t/writing-to-a-file-works-when-i-publish-preview-but-not-as-a-projector-exe-why/300169 "2009-11-17T03:00:11Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![cakepizza](https://avatars.discourse-cdn.com/v4/letter/c/45deac/32.png) [@cakepizza](https://forum.kirupa.com/u/cakepizza)
#### Post date: [November 17, 2009, 3:00am UTC](https://forum.kirupa.com/t/writing-to-a-file-works-when-i-publish-preview-but-not-as-a-projector-exe-why/300169/1 "2009-11-17T03:00:11Z")

</div>

I am writing to a text file via FileStream, and it writes just fine when I do a publish preview (control + Enter), but when I publish it as a projector and run the exe, it does not work. Anyone have an idea why this might be?

My publish settings are set to  
Player: Adobe AIR 1.5  
Script: ActionScript 3.0
