How can I read from a file on the client with Javascript?

John Zukowski

Basic security permissions don't permit this but, you can create an ActiveXObject FileSystemObject in IE to read, write, or append.

fs = new ActiveXObject("Scripting.FileSystemObject");
a = fs.OpenTextFile("c:	estfile.txt", 1, false);
For additional information on OpenTextFile, see Users will be warned when this task is attempted.
0 Comments  (click to add your comment)
Comment and Contribute






(Maximum characters: 1200). You have 1200 characters left.



About | Sitemap | Contact