I am currently just trying to read one file using FileReader(). Here is the code I have so far,
<script>
var file = new File("file:///C:/path/to/file");
var reader = new FileReader();
var block = document.getElementById("block");
reader.onload = function(){
block.innerText = reader.result;
};
reader.readAsText(file);
</script>
I get an error saying that I need 2 arguments instead of 1 argument when instantiating a new File. What do I need for the first argument?