How to run a Linux/C program in a customized way?
I need to write a program that is to be run as follows: `<program_name>_ <space> _<file_name>_ <space> _<stuff to be written into the file>`. 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 `<program_name>`, pass two parameters in the main function which are `<file_name>` and `<stuff to be written in the file>`, 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! :)
How to run a Linux/C program in a customized way?
===

I need to write a program that is to be run as follows: `<program_name>_ <space> _<file_name>_ <space> _<stuff to be written into the file>`. 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 `<program_name>`, pass two parameters in the main function which are `<file_name>` and `<stuff to be written in the file>`, 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! :)