# Respond if foobar.txt exists or not

**URL:** <https://forum.kirupa.com/t/respond-if-foobar-txt-exists-or-not/111451>\
**Category:** Uncategorized\
**Created:** [May 27, 2004, 12:42am UTC](https://forum.kirupa.com/t/respond-if-foobar-txt-exists-or-not/111451 "2004-05-27T00:42:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![NiVRaM](https://avatars.discourse-cdn.com/v4/letter/n/71e660/32.png) [@NiVRaM](https://forum.kirupa.com/u/NiVRaM)\
**Post date:** [May 27, 2004, 12:42am UTC](https://forum.kirupa.com/t/respond-if-foobar-txt-exists-or-not/111451/1 "2004-05-27T00:42:52Z")

</div>

Hello,

I’m interested in creating a full flash website. For my “news” page, I’d like it to be easily editable. So I intend to have the news correspond to a news.txt file, which Flash will detect (I’ve read the tutorial on how to do that).

However, I’d like for each news article to be in its own seperate table. So it will look like this:

## NEWS: News1

## News2

Etc

In order to have different boxes for each news article, the number of existing boxes must be linked directly to the number of news.txt (news1.txt, news2.txt, etc).

Anyone know how I can do this, or if it is even possible?

Thanks

---

<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 27, 2004, 9:27am UTC](https://forum.kirupa.com/t/respond-if-foobar-txt-exists-or-not/111451/2 "2004-05-27T09:27:28Z")

</div>

ok u could do this if ur host supports asp  
u could use a script to see if a file exist in ur directory  
[color=#ff0000]\<%  
Set fs=Server.CreateObject(“Scripting.FileSystemObject”)

If (fs.FileExists(“url”))=true Then  
dowhatever[/color]  
[color=#ff0000]End If

set fs=nothing  
%\>[/color]  
[color=#ff0000][/color]  
[color=#ff0000]just something like that and post it to ur swf make a array or increment to figure out the textfiles number[/color]
