# Writing to a .TXT file

**URL:** https://forum.kirupa.com/t/writing-to-a-txt-file/62149
**Category:** flash
**Created:** [August 25, 2004, 10:00am UTC](https://forum.kirupa.com/t/writing-to-a-txt-file/62149 "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/62149/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: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [August 25, 2004, 10:08am UTC](https://forum.kirupa.com/t/writing-to-a-txt-file/62149/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: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [August 25, 2004, 6:38pm UTC](https://forum.kirupa.com/t/writing-to-a-txt-file/62149/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]
