Go4Expert

Go4Expert (http://www.go4expert.com/)
-   Web Design, HTML And CSS Forums (http://www.go4expert.com/forums/web-design-forum/)
-   -   Access text file on client's computer with javacript (http://www.go4expert.com/forums/access-text-file-clients-computer-t25971/)

telegramsam1 4Jun2011 01:32

Access text file on client's computer with javacript
 
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.


All times are GMT +5.5. The time now is 21:43.