title: How to parse FlatFile in mulesoft
body: <p>I am new to Mulesoft.
  I have one flatfile-</p>
  
  <pre><code>RHR001NTT PQR  2018090920180505
  STR0010057830DFLT     74253J461000490
  STR0020000000000000000000000000000000
  </code></pre>
  
  <p>I want to iterate each line and then I want to take each row to get substring from one position to another position. E.g. in row one I want substring from 6th column to 12th column.</p>
  
  <p>I am trying new things to do it. I have separated each line using splitter component with 
  <code>#[StringUtils.split(message.payload, '\n\r')]
  </code>and now I want to take substring from each line from one position to another position.
  I have no idea what should I do now? Is there any other way? I have heard about For-Each component.I don't have any experience or idea about For-Each and Splitter components. 
  Please help me out. Thanks in advcance!  </p>