title: How to read a file line by line in crystal language?
body: <p>Hi I want to read a file line by line with crystal language, but I don't know how can I do that.</p>
  <p>I read crystal documentation, but I couldn't find my answer.</p>
  <p>It's my code:</p>
  <pre><code>system(&quot;ls /etc/NetworkManager/system-connections/ &gt; Fox.txt&quot;)
  file = File.read(&quot;Fox.txt&quot;)
  system(&quot;sudo cat /etc/NetworkManager/system-connections/\'#{file}\' &gt;&gt; Fox_done.txt&quot;)
  </code></pre>