title: How to pass command line parameters from a file
body: <p>I have a C program that reads command line arguments from argv. Is it possible to make a pipe to redirect the contents of a file as command line arguments to my program? Suppose I have a file <code>arguments.dat</code> with this content:</p>
  
  <pre><code>0 0.2 302 0
  </code></pre>
  
  <p>And I want my program to be called with:</p>
  
  <pre><code>./myprogram 0 0.2 302 0
  </code></pre>
  
  <p>I tried the following:</p>
  
  <pre><code>cat arguments.dat | ./myprogram
  </code></pre>
  
  <p>without success. </p>