# Writing to a textfile

**URL:** <https://forum.kirupa.com/t/writing-to-a-textfile/22488>\
**Category:** flash\
**Created:** [June 4, 2003, 6:18pm UTC](https://forum.kirupa.com/t/writing-to-a-textfile/22488 "2003-06-04T18:18:24Z")\
**Posts on this page:** 13\
**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:** [June 4, 2003, 6:18pm UTC](https://forum.kirupa.com/t/writing-to-a-textfile/22488/1 "2003-06-04T18:18:24Z")

</div>

Here’s the situation:

My site pretty much runs off separate textfiles. 2 questions:

1. How can I write to a textfile
2. Is it possibel to not only write but also read from a text file? for a FAQ section on my site.

Thanks, can’t seem to hack this one by myself 🙂

oh, and also, I can’t do this using php, they (my job) refuse to install it on our webserver.

---

<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:** [June 4, 2003, 6:24pm UTC](https://forum.kirupa.com/t/writing-to-a-textfile/22488/2 "2003-06-04T18:24:23Z")

</div>

Hmm…I don’t think you can write to a txt file without PHP, you can read from it, but you can’t write to it.

---

<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:** [June 4, 2003, 6:25pm UTC](https://forum.kirupa.com/t/writing-to-a-textfile/22488/3 "2003-06-04T18:25:09Z")

</div>

really? there’s got to be a way no? how about using asp?

---

<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:** [June 4, 2003, 6:26pm UTC](https://forum.kirupa.com/t/writing-to-a-textfile/22488/4 "2003-06-04T18:26:56Z")

</div>

Yes, I believe with ASP you can, but I’ve never done it before.

---

<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:** [June 4, 2003, 6:28pm UTC](https://forum.kirupa.com/t/writing-to-a-textfile/22488/5 "2003-06-04T18:28:16Z")

</div>

ok thank man, i’ll have to look into this.

---

<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:** [June 4, 2003, 6:31pm UTC](https://forum.kirupa.com/t/writing-to-a-textfile/22488/6 "2003-06-04T18:31:32Z")

</div>

I would use PHP. 🙂 There’s a thread abou tit…

---

<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:** [June 4, 2003, 6:33pm UTC](https://forum.kirupa.com/t/writing-to-a-textfile/22488/7 "2003-06-04T18:33:04Z")

</div>

[http://www.kirupaforum.com/forums/showthread.php?s=&threadid=10150&highlight=php+text](http://www.kirupaforum.com/forums/showthread.php?s=&threadid=10150&highlight=php+text)

---

<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:** [June 4, 2003, 6:33pm UTC](https://forum.kirupa.com/t/writing-to-a-textfile/22488/8 "2003-06-04T18:33:55Z")

</div>

Oh, and yea, you need to use a Server-Side language in order to write to a text file. ASP, PHP, CGI or PERL i believe would work as well…

but we all know that I prefer php… 😛

If you need any help I’ll be online all day. You know how to contact me…

bah, stupid job.

Its basically the same method with ASP though… open file, read it, write to it… close it. viola

---

<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:** [June 4, 2003, 6:36pm UTC](https://forum.kirupa.com/t/writing-to-a-textfile/22488/9 "2003-06-04T18:36:23Z")

</div>

here’s something with ASP

[http://beta.experts-exchange.com/Web/Web\_Languages/ASP/Q\_20413113.html](http://beta.experts-exchange.com/Web/Web_Languages/ASP/Q_20413113.html)

EDIT:

another: [http://www.freevbcode.com/ShowCode.Asp?ID=89](http://www.freevbcode.com/ShowCode.Asp?ID=89)

---

<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:** [June 4, 2003, 6:38pm UTC](https://forum.kirupa.com/t/writing-to-a-textfile/22488/10 "2003-06-04T18:38:00Z")

</div>

cool thanks jubba, yea i know php would be better but unfortunatly the wont install that here on our webserver cuz of security issues ☹ thanks for the link, i am going to check it out 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:** [June 4, 2003, 6:39pm UTC](https://forum.kirupa.com/t/writing-to-a-textfile/22488/11 "2003-06-04T18:39:01Z")

</div>

good deal. 🙂

stupid job… MS is a security risk… stupid sloppy coders…

good luck…

---

<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:** [June 4, 2003, 6:42pm UTC](https://forum.kirupa.com/t/writing-to-a-textfile/22488/12 "2003-06-04T18:42:24Z")

</div>

hmm well this looks like it could help me out. i think that second link will do the trick.

thanks again… oh and ill be bothering you agian tonight with some php/sql help ! lol 🙂

---

<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:** [June 4, 2003, 6:44pm UTC](https://forum.kirupa.com/t/writing-to-a-textfile/22488/13 "2003-06-04T18:44:48Z")

</div>

i’m looking forward to it. 😛
