...

View Full Version : Reading in from a text file.



jeeden
12-24-2007, 11:16 PM
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.

Thanks

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



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum