I apologize in advance because of my basic question, I googled it but I can not understand. I have a simple client server program in python, the server send a command to the client and receive the result from it.
My teacher asked me to make a .cfg file for it, my question is why should I do this? I mean what is the benefit of creating a .cfg file? I should run my program in cmd
or in an IDE anyway, right?
A server listens in a certain IP and port. A client connects to an IP and port. Any other settings you can think of about some program configuration will do.
What if you want to change those without touching the code. Maybe a user of your program wants to change the configuration and doesn't even know how to code. I bet the user knows how to edit a text file of settings.