title: How to read a text file from server using JavaScript?
body: <p>On the server, there is a text file. Using JavaScript on the client, I want to be able to read this file and process it. The format of the file on the server cannot be changed.</p>
  
  <p>How can I get the contents of the file into JavaScript variables, so I can do this processing? The size of the file can be up to 3.5 MB, but it could easily be processed in chunks of, say, 100 lines (1 line is 50-100 chars).</p>
  
  <p>None of the contents of the file should be visible to the user; he will see the results of the processing of the data in the file.</p>