title: How to store each line in a txt file to a new list in netlogo?
body: <p>How can I create a new list for each line in a txt file in netlogo? For example, I have a file containing these values:</p>
  
  <pre><code>[89 64 90 1 97 45 109]
  [89 64 90 1 97 38 109]
  [89 101 11 51 80 9 109]
  [89 101 11 51 80 16 13 109]
  [89 101 11 51 80 16 13 68 109]
  </code></pre>
  
  <p>And I would like to create a list for each one of these lines. i.e.</p>
  
  <pre><code>List1: [89 101 11 51 80 16 109]
  List2: [89 101 11 51 80 9 109]
  etc...
  </code></pre>
  
  <p>The number of lines in the file varies so the number of lists cannot be statically allocated.
  This is the current code to loop through the file and output each line as a list in the console:</p>
  
  <pre><code>
  to DetermineRoute
  
    ask sensors with [color = green][
    file-open "BaseStationRoutes.txt"
      while [ not file-at-end? ] [
      let Route file-read-line
      set Route read-from-string Route
      print Route
      print length Route ;length is the hop count
      ]
      file-close 
    ]
  
  end
  </code></pre>
  
  <p>The end goal is to get the average length of each list to calculate the standard deviation.</p>