I know how to do File I/O and such, but I was wanting to put the time and date on the top of one of my documents that was output. Besides typing it it how would I go about this? I copied some code for how to display the time and such during a program, but since I just copied the code I don't know how it works , and so I don't know how to write it to a file.
Any help is well appreciated!