title: How to process terminal command arguments?
body: <p>I'm making a university project which is supposed to read a table from <strong>stdin</strong>, apply some changes to it and print to <strong>stdout</strong>. Here's how the program should be run:</p>
  <pre><code>./main [delimiter] [function] &lt;file1.txt &gt;file2.txt
  </code></pre>
  <p><code>[delimiter]</code> is the character that will divide the cells in the resulting table, defined in the body;</p>
  <p><code>[function]</code> is the function that will be performed to modify rows or columns, defined in the body.</p>
  <p>So my question is, how can I read the <code>[delimiter]</code> and <code>[function]</code> from the terminal so that I can use them accordingly in the body of the program?</p>