title: Bash read file line by line and store into array
body: <p>Trying figure out how to read txt file line by line and store it into an array:
  How to modify IFS command to accept an array?</p>
  <pre><code>index=0;
  while IFS= read -r line; do
  #echo &quot;$line&quot;
  
  
  #let index=index+1
  #echo &quot;$index&quot;
  done &lt; myFile.txt
  
  echo $line[0] 
  </code></pre>
  <p>Thanks</p>