The problem is , how to write interface to a program

For example , I want to work with a set of points (they have coordinats) , the thing is how concrete can I realize commands .
I compile program , then I start it , write adress of file with points and then write add (4;6) , and this comand should add point with coordinats (4;6) to the file wich adress I wrote