1. We have moved from vBulletin to XenForo and you are viewing the site in the middle of the move. Though the functional aspect of everything is working fine, we are still working on other changes including the new design on Xenforo.
    Dismiss Notice

Access text file on client's computer with javacript

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

  1. telegramsam1

    telegramsam1 New Member

    Jun 3, 2011
    Likes Received:
    Trophy Points:
    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