title: How to run a Linux/C program in a customized way?
body: <p>I need to write a program that is to be run as follows: <code>&lt;program_name&gt;_ &lt;space&gt; _&lt;file_name&gt;_ &lt;space&gt; _&lt;stuff to be written into the file&gt;</code>. I am new to Linux/C/Unix programming and so I need your help. From what I can understand, I need to write a program titled <code>&lt;program_name&gt;</code>, pass two parameters in the main function which are <code>&lt;file_name&gt;</code> and <code>&lt;stuff to be written in the file&gt;</code>, and then go through the code as usual, writing all the required lines. Am I going about this the right way? Also, it is mentioned that I am to create a make file out of the program. As I am thoroughly unfamiliar with Linux, I would like to know if that this would change anything. That is, would my approach to the program change because I am to make a make file out of it? Thanks for the help! :)</p>