How can I read from a file on the client with Javascript?
Created May 7, 2012
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 http://msdn.microsoft.com/library/en-us/script56/html/jsmthopentextfile.asp. Users will be warned when this task is attempted.