Click to See Complete Forum and Search --> : reading from text files


mgrenier
03-10-2005, 08:00 AM
Hi,
I am trying to read from a file. I have a file which contains the path to another file in it. I am trying to read the contents of this text file and store them in a string. Can anyone help me out with this.

Thanks a lot,
Matt

Pittimann
03-10-2005, 08:05 AM
Hi!

Why not make your .txt file a .js file where the path to the other file is defined as a variable usable in the main page? Javascript alone is not able to read a textfile.

Cheers - Pit

mgrenier
03-10-2005, 08:07 AM
hmmm, never gave that much though. Guess thats what I'll have to do.
Thanks