I'm working on a socket program. I need to get informations regarding the adress of a server from a document. I need to be able to change what document I get those informations from when I run the executable. For example, if my program is called client.c, I need to be able to type in the terminal : ./client -c Name_Of_The_Document, and then the program will get these informations from the document Name_Of_The_Document.
I have no idea how to implement this "-c" option and I don't even know what to type on google or anything. Thanks to anyone that could help me
I have all the code to read in the document working, I just need to know how to change what document I want to read in form the terminal when running the executable.