title: How can I only read in the first line of a file in Javascript?
body: <p>I am trying to read only the first line of a CSV file in javascript without reading the entire file. So far, the solutions I've found on SO only include using .split which still reads in the entire file and splits by newlines. I've also tried using FileReader progress to stop after the first line, but you can't control how much is read in progress. How could I go about using progress or another method to only get the first line and not read in the rest of the file? </p>