title: How to scan a text file and extract data from it according to a search criteria in Javascript
body: <p>I’m trying to create a webpage that includes a calendar (query datepicker) to play a video for a particular day stored on vimeo .
  So far I managed to get the date on which I clicked assigned to a var (date).
  Now I need to find the corresponding vimeo ID to this date in order to assign it to the embedded vimeo player.
  I thought that the best way to do this is to read a text file with below content that I have stored in my webpage folder.</p>
  
  <p>……
   <p>02-04-2014_Vevey 98230271 <br>
                02-05-2014_Vevey 98231062 <br>
                02-06-2014_Vevey 98231771 <br>
                03-04-2014_Vevey 98232437 <br>
                03-05-2014_Vevey 98232658 <br>
                03-06-2014_Vevey 98233405 <br>
                04-04-2014_Vevey 98234165 <br>
              04-05-2014_Vevey 98234754</p>
  ....</p>
  
  <p>each line containing a date information with corresponding vimeo ID.</p>
  
  <p>The point is that I am just beginning with Javascript and don’t know how to send a search criteria, read a file line by line, extract the date from first part, compare it with the search criteria and then return the ID.
  Is there anyone willing to take some time for helping me?
  Thank you.</p>
  
  <p>Daniel</p>