# Writing to a txt file?

**URL:** https://forum.kirupa.com/t/writing-to-a-txt-file/2711
**Category:** Uncategorized
**Created:** [May 1, 2002, 12:37am UTC](https://forum.kirupa.com/t/writing-to-a-txt-file/2711 "2002-05-01T00:37:40Z")
**Posts on this page:** 12
**Page:** 1

<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: [May 1, 2002, 12:37am UTC](https://forum.kirupa.com/t/writing-to-a-txt-file/2711/1 "2002-05-01T00:37:40Z")

</div>

I’ve got all these flash books, yet not one of them tells me if it’s possible to write to a txt file. They show how to read from a txt file using loadVariables(), but not the reverse. I’m guessing it can be done.

---

<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: [May 1, 2002, 3:04am UTC](https://forum.kirupa.com/t/writing-to-a-txt-file/2711/2 "2002-05-01T03:04:37Z")

</div>

I believe that it can be. I’m working on that idea myself as I have a web site that does not have any database and needs to store some information for things like a questbook. If I discover anything I’ll let you know.

---

<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: [May 1, 2002, 3:24am UTC](https://forum.kirupa.com/t/writing-to-a-txt-file/2711/3 "2002-05-01T03:24:56Z")

</div>

easiest thing in the world using php!\rcheck the beta-chatroom (available on flashkit, called lyonsChat i believe), it’s using a simple txt, updated with every post…\r\r[eyezberg.free.fr/chat/eyezChat.html](http://eyezberg.free.fr/chat/eyezChat.html)

---

<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: [May 1, 2002, 3:25am UTC](https://forum.kirupa.com/t/writing-to-a-txt-file/2711/4 "2002-05-01T03:25:46Z")

</div>

thanks man… I’ve been looking for this for a few days now.

---

<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: [May 1, 2002, 3:39am UTC](https://forum.kirupa.com/t/writing-to-a-txt-file/2711/5 "2002-05-01T03:39:32Z")

</div>

You online, Upu?!\rOriginal site is here: [www.flashbuilder.ch/](http://www.flashbuilder.ch/)

---

<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: [May 1, 2002, 3:57am UTC](https://forum.kirupa.com/t/writing-to-a-txt-file/2711/6 "2002-05-01T03:57:37Z")

</div>

I am online. 🙂

---

<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: [May 1, 2002, 10:22am UTC](https://forum.kirupa.com/t/writing-to-a-txt-file/2711/7 "2002-05-01T10:22:17Z")

</div>

I think it’s possible with undocumented AS functions. Something like fscommand(“save”,“file.txt”) but I’m not sure at all how to use that.\r\rpom 0]

---

<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: [May 1, 2002, 6:27pm UTC](https://forum.kirupa.com/t/writing-to-a-txt-file/2711/8 "2002-05-01T18:27:08Z")

</div>

Depends if it’s on or offline…i think…

---

<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: [May 1, 2002, 9:29pm UTC](https://forum.kirupa.com/t/writing-to-a-txt-file/2711/9 "2002-05-01T21:29:53Z")

</div>

Okay, atleast it can be done. I currently have a free chat-room, but I want to make my own, so I can add a little display telling people how many are in the room, before they log on.

---

<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: [May 1, 2002, 9:48pm UTC](https://forum.kirupa.com/t/writing-to-a-txt-file/2711/10 "2002-05-01T21:48:11Z")

</div>

So why do you want to write to a text file for ?\r\rpom 0]

---

<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: [May 1, 2002, 10:18pm UTC](https://forum.kirupa.com/t/writing-to-a-txt-file/2711/11 "2002-05-01T22:18:44Z")

</div>

Well for a start, I’d have to write to a file, so the messages can be displayed on the screen for everyone on their computer to see. After all, Flash can’t directly send variables to another flash file on another computer. That’s what the txt file is for.\r\rThe chatroom would open up on a seperate browser window, when users click the link on. I want another flash prog to keep track of how many people are in the chatroom. So when they goto my ezboard, before they open up the chatroom to see who’s in there, they can see it straight away.\r\rTrust me, I make sense to myself. 🙂

---

<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: [May 1, 2002, 10:45pm UTC](https://forum.kirupa.com/t/writing-to-a-txt-file/2711/12 "2002-05-01T22:45:58Z")

</div>

OK, OK…\r\rpom 0]
