Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Jul 2007
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Reading in from a text file.

    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

  • #2
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,854
    Thanks
    160
    Thanked 2,223 Times in 2,210 Posts
    Blog Entries
    1
    Javascript is not capable to handle file operations. You have to use some server side script.
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •