View Full Version : Reading in from a text file.

12-25-2007, 12:16 AM
Is it possible to read in from a text file line by line?
Like in C when I open a file and parse through it, the file pointer remains and will keep pulling until EoF.

I was wondering if there is something comparable to
read(fp,"%s /n", &name);

I want to check a word against a list I have on the local server.
The list is a txt file with a word on each line. If the input from the user in a textbox doesn't match a word in the list..then trigger blah blah.


12-25-2007, 08:12 AM
Javascript is not capable to handle file operations. You have to use some server side script.