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 3 of 3

Thread: Open Files

  1. #1
    New to the CF scene
    Join Date
    Jul 2002
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Open Files

    Hello all
    Im new to javascript. I have a text file and I want to open it and store whats in that line by line into a variable.

    I tried some stuff like

    filename = "file.txt"
    result = filename.open ("r")

    but im not sure what im doing

    Please help
    Thanks a million
    Al

  • #2
    Regular Coder
    Join Date
    Jun 2002
    Location
    The Netherlands
    Posts
    217
    Thanks
    0
    Thanked 0 Times in 0 Posts
    You can't really read/edit files with javascript,but you can import XML documents:
    http://webfx.eae.net/dhtml/xmlextras/xmlextras.html
    http://www.xs4all.nl/~ppk/js/importxml.html

  • #3
    New to the CF scene
    Join Date
    Jul 2002
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thank you both for your help


  •  

    Posting Permissions

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