# Writing to a .TXT file

**URL:** https://forum.kirupa.com/t/writing-to-a-txt-file/120551
**Category:** Uncategorized
**Created:** [August 25, 2004, 10:00am UTC](https://forum.kirupa.com/t/writing-to-a-txt-file/120551 "2004-08-25T10:00:58Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![JohnLawton](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/johnlawton/32/42_2.png) [@JohnLawton](https://forum.kirupa.com/u/JohnLawton)
#### Post date: [August 25, 2004, 10:00am UTC](https://forum.kirupa.com/t/writing-to-a-txt-file/120551/1 "2004-08-25T10:00:58Z")

</div>

Hi

I need to be able to write to an existing .TXT file which sits in the same folder on the server as the .SWF.

I can read from it no problem, but I can’t see any way in Flash to write to the same file. Am I missing something or isn’t it possible?

A speedy response would save me banging my head on this brick wall any longer

Cheers

John :sigh:

---

<div class="post-metadata">

### Author: ![signifer123](https://avatars.discourse-cdn.com/v4/letter/s/858c86/32.png) [@signifer123](https://forum.kirupa.com/u/signifer123)
#### Post date: [August 25, 2004, 10:08am UTC](https://forum.kirupa.com/t/writing-to-a-txt-file/120551/2 "2004-08-25T10:08:52Z")

</div>

I don’t think so unlesss somehow you can incorperate somesort of ftp log in.

---

<div class="post-metadata">

### Author: ![Dunga](https://avatars.discourse-cdn.com/v4/letter/d/e0b2c6/32.png) [@Dunga](https://forum.kirupa.com/u/Dunga)
#### Post date: [August 25, 2004, 6:38pm UTC](https://forum.kirupa.com/t/writing-to-a-txt-file/120551/3 "2004-08-25T18:38:21Z")

</div>

I know you can do it with php, there are some relatively simple commands that can open, read, and write files. I, unfortunately, have no clue how to actually do this.

[NAG]Also note that this has been answered many times before, try searching… [/NAG]
