title: How to read binary file in distributed manner using Erlang?
body: <p>I have few binary files of moderate size (1 to 5 GB) which I want to read and process using Erlang. </p>
  
  <p>Each file has records of varying sizes, i.e. one record will be 200 kb but other record may be 800 kb size. Record size can be obtained by reading first few bytes of record. As it is a binary file, there's no delimiter between two records.</p>
  
  <p>To process these files we can write multithreaded program but just for having fun I thought of processing files in parallel using Erlang.</p>
  
  <p>I am newbie to Erlang so I don't know how I can split files into chunks and pass these chunks to Erlang processes.</p>
  
  <p>Can anyone please give some ideas?</p>