Hi guys i want to write a program that runs when the computer is turned on and records what time the computer was turned on into a txt file. I know how to do the file input/output stuff but i need to know:

1) how to get the date & time with <time.h>
2) how to get the program to run when the computer starts

Thanks alot guys!