jhaycutexp 8 Newbie Poster

i'm perfectly new to this language, although the logic is same as c++ and actionscripts so i kinda get some of the tutorials.. i read through them and i can't seem to find the answer for this... maybe this is advance.. so.. please.. help...

well actually my problem is i wan't to know how to transfer the contents of a folder into an array..

for example i have a folder that contains images and i would like them to be read and stored in an array like var photo = newArray() and display them in a
<div class ="photos">

In addition, i also would like to know if its possible to read the contents of a text file (.txt) and transfer them into a <p>

<div>
    <p><---contents of the textfile should be passed here</p>
</div>

.

Although I read through w3schools that its possible when its saved as .js , and passing them by methods od DOM...

your replies will be greatly appreciated....