Can you please help me what changes are required in an already existing Clock sycnchronization Program in C to add a txt.ini option in it which allows the progam to run just once and then terminate.



Once in what time-span? Such as once an hour? once a day? I would probably store the current date/time in the ini file, then on program startup read that information and act according to how often the program should run. such as if its not time to synchronize the clocks again yet then just quit.