i have a code to read a text file in javascript
<input type="file" id="input" onchange="readFile()">
<script>
function readFile(){
var fr = new FileReader();
fr.onload = function() {
var textContent = fr.result;
//The code
}
fr.readAsText(document.getElementById("input").files[0]);
}
</script>
but the file that i want to read is too big so i want to read a specific line of it in javascript
Important
I want it in javascript not node.js
The files is local not online