title: Ruby - Read file in batches
body: <p>I am reading a file that is 10mb in size and which contains some id's. I read them into a list in ruby. I am concerned that it might cause memory issues in the future, when the number of id's in file might increase. Is there a effective way of reading a large file in batches?</p>
  
  <p>Thank you  </p>