Hi friends,

I want to read a text file which contains some names. the 1st line of the file is a number denoting the number of names in the file. sample file is like this

Filename: sample.txt

4
abc
def
ghi
jkl

i want to read this file using javascript and store each line in a array. I dont want to browse for this file (sample.txt). the array should be loaded with the contents when the page is loaded. can any1 suggest some idea as soon as possible.

Thanks