You can always read a file from a web server; serving files is its nature. But you'll need an URL to tell it which file. Look into XMLHttpRequest().
Accessing the local filesystem from JS generally doesn't work; most browsers flat-out prohibit it even if you load the JS program from the local disk. All browsers *should* prohibit accessing anything from outside the 'domain' of the loaded web site.