# Loading TXT files

**URL:** <https://forum.kirupa.com/t/loading-txt-files/4621>\
**Category:** flash\
**Created:** [August 14, 2002, 6:14pm UTC](https://forum.kirupa.com/t/loading-txt-files/4621 "2002-08-14T18:14:05Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gaztank](https://avatars.discourse-cdn.com/v4/letter/g/ecccb3/32.png) [@Gaztank](https://forum.kirupa.com/u/Gaztank)\
**Post date:** [August 14, 2002, 6:14pm UTC](https://forum.kirupa.com/t/loading-txt-files/4621/1 "2002-08-14T18:14:05Z")

</div>

I’ve looked at the “Dynamaically Scrolling Text Files” tutorial and found that the way text files were loaded was using

loadText.load(“TextFile.txt”);

but my text file is not located in the same directory as the flash file. I know someone is gonna say, just put the text file into the same directory and ur problem is solved, but the answer i’m looking for is how i could change the path of that line for it to recognize files from other directories.

when i put “Text\TextFile.txt” as the parameter, the code is flagged red with an error.

---

<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 14, 2002, 10:15pm UTC](https://forum.kirupa.com/t/loading-txt-files/4621/2 "2002-08-14T22:15:15Z")

</div>

Im not sure if that is possible why cant you just put it in the same directory why do you have to make it more complex then it actually is dude???

---

<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 15, 2002, 12:10am UTC](https://forum.kirupa.com/t/loading-txt-files/4621/3 "2002-08-15T00:10:22Z")

</div>

Maybe your slash is the wrong way.

---

<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 15, 2002, 1:49am UTC](https://forum.kirupa.com/t/loading-txt-files/4621/4 "2002-08-15T01:49:53Z")

</div>

i didn’t think it would be any more complex, i just thought it would be a simple change of a path … but i guess apparently not …

i’ve tried the slahes different ways … one way would cause the syntax to be wrong and the code would be hilited red, the other way just fails to load anything …

anymore suggestions ?

---

<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 15, 2002, 3:32am UTC](https://forum.kirupa.com/t/loading-txt-files/4621/5 "2002-08-15T03:32:29Z")

</div>

I am using a sub folder (“data\data.txt”).

This works fine for me. Maybe it’s a case sensitive issue on your server.

Good luck! Let me know what you find out, as I am having a hell of a time with loading text and different issues.

RR

---

<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 15, 2002, 3:45am UTC](https://forum.kirupa.com/t/loading-txt-files/4621/6 "2002-08-15T03:45:50Z")

</div>

hmm … weird … cuz it’s working now … just as u said … just putting the path in there works … but i’ve tried this all nite last nite and and all morning today … that was time well wasted …

er … not sure if u saw my other thread about listboxes, hope u have some experience with that cuz that’s giving me a lot of trouble. possibly because the listbox tutorials that i’ve found have been kinda confusing to me still …
