1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Access text file on client's computer with javacript

Discussion in 'Web Design, HTML And CSS' started by telegramsam1, Jun 3, 2011.

  1. telegramsam1

    telegramsam1 New Member

    Joined:
    Jun 3, 2011
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    I would like my web application to obtain the contents of a .txt file sitting on the desktop of the client. The client will click a menu button (I am using an exotic UI library) and a file dialog will obtain the file path of the .txt as a string. Lets say
    myFilePath = "C:\Users\Tom\Desktop\myFile.txt";

    With this information in hand, I would then like the contents of this text file to be stored in the string 'myFileContent'.

    I understand this is likely to make my browser explode with warnings. Web pages accessing files on your computer... madness. :crazy: If this is only possible using some other technique, please explain that technique.
     

Share This Page