i used to use C years ago and am not proficient on it anymore however i needed some code to output the current date and time in the format "YYYY-MM-DD HH:MM:SS " to a file called TIME.TXT. and i would need this .txt file to be output to my desktop or a certain location. if anyone could please help me or even direct me to some answers so i could find the solution to my problem then i would be eternally grateful!!!
also i don't know if this helps but im on a mac, anything at all would help greatly.
the code doesn't necessarily have to be C, if there is anything easier that i could use then please feel free to advise me so that i can do that!
Thank you in advance :)