var file = files[0];
var reader = new FileReader();
reader.onload = function()
{
document.getElementById("filecontent").innerhtml = this.result;
};
reader.readAsText(file);
http://blog.csdn.net/oscar999/article/details/37499743