You are not going to get sample code that works in the other browsers. JavaScript has strong security to keep the user's safe. Reading files on the local machine is something that is not secure.
If it is not working in IE7, it is because ActiveX is not enabled or the path is not correct.
You will have to look at another technology such as an
applet, or you need to submit to the server and deal with it there.
Eric