A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: How to open and save text files using Javascript ?

  1. #1
    Junior Member
    Join Date
    Nov 2009
    Posts
    3

    How to open and save text files using Javascript ?

    Hi

    First of all, let me tell you that this is not a homework question, since i am no longer in college, i don't get homework.

    Ok now to the question => Can you please give me a little example java script to open and save text files

    Thank you in advance

  2. #2
    Junior Member
    Join Date
    Nov 2009
    Posts
    3
    Quote Originally Posted by greenerworld007 View Post
    Hi

    First of all, let me tell you that this is not a homework question, since i am no longer in college, i don't get homework.

    Ok now to the question => Can you please give me a little example java script to open and save text files

    Thank you in advance
    ___________________
    Recycling Waste Equipment
    Waste Paper Recycling uk
    Plastic Recycling

  3. #3
    Senior Member
    Join Date
    Apr 2002
    Posts
    2,849
    You can't with Javascript. Well, technically you may be able to if the person is running IE, and if they're running your webpage from their hard drive rather than the internet. As you can imagine, allowing webpages to read files on your hard drive and write to them could be a security issue, which is why it's not possible in most browsers.

    What you can write to is a cookie, which can store a little bit of information. Or, with a server side language you could read and write to a file on your server.

    What exactly are you trying to accomplish?

Posting Permissions

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




Click Here to Expand Forum to Full Width

HTML5 Development Center