title: How to convert large number string into integers in jsr223 sampler with groovy
body: <p>I am using a jsr223 sampler to read jtl file and break it into multiple files, cant use csv data set configure for some reason. I am using groovy as language</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>def INPUT_FILE = vars.get("INPUT_FILE");
  def lines = new File(INPUT_FILE).readLines();
  int start = lines[1].split(',')[0].toInteger(); //taking second line first column and converting to int
  log.info("=====read start: " + start); //displaying in logs</code></pre>
  </div>
  </div>
  </p>
  
  <p>This is giving error, unable to figure out the fix, tried out with long, def data types</p>
  
  <p><a href="https://i.stack.imgur.com/onkVl.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/onkVl.png" alt="enter image description here"></a></p>