title: python script to test I/O on C program
body: <p>I have a code in C and I want to write a script in python that read input from a file (input.txt for example), run the C code with that input and write the output into another file (output.txt for example).</p>
  
  <p>How can I do it? Any suggestions?</p>