title: How can I divide an array at every second item into an subarray containing these two items
body: <p>I have a bunch of x- and y-coordinates in a text file, where every second number is a x-/y-coordinate (like shown below). I already wrote the numbers into an array, but now I have to divide the array at every second number into a subarray, containing the x- and y-coordinate. How do I do this?</p>
  
  <p>coordinates.txt</p>
  
  <pre><code> x  y  x  y  x  y
  10 30 40 50 60 70
  </code></pre>