title: Read file from terminal input "cat" on C
body: <p>I'm making a program that read CSV files based on the arguments of the C program called read-log</p>
  
  <p>example </p>
  
  <pre><code>$ ./read-log file1.csv
  
  $ ./read-log file1.csv file2.csv nofile.csv
  </code></pre>
  
  <p>But I also need my program to read files when using the unix command <code>cat</code> but when I input:</p>
  
  <pre><code>$ cat file1.csv |./read-log
  </code></pre>
  
  <p>The program doesn't get any argument.</p>