Reading from a file is the process whereby we feed input to a computer program with different types of data contained on the file while writing to a file is the process of outputting contents of a ...
JS probably isn't the way to go. Probably a better way would be to write an app with an embedded IE window.