title: Need a way to read 20k values instead of having them in an array with 20k items
body: <pre><code>$numbers = array( 1, 24, 36, [...], 19999, 20000 );
  foreach ($numbers as $nid) {
  
  $node = node_load($nid);
  $node-&gt;field_fieldname[LANGUAGE_NONE][0]['value'] = 'some value';
  field_attach_update('node', $node);
  
  }
  </code></pre>
  <p>I have written the above code, and i am wondering if there is a better way to have a loop over approximately 20k numbers found in this array. Could the above numbers be read from a file, where each number would be in its own row? Or what would you suggest should be the appropriate - best way to handle this?</p>