Append a temp file to a log file
hello, i am faced with another problem that I am not sure how to tackle:
FILE *file = tmpfile();
fprintf(file, "%s", ctime(&time));
logfile = fopen("logfile.txt","a");
These are little snippets of my code for my basic direction. Here I am printing the time with some commands entered in to a temp file. After the session is complete I will append the temp file to a log file. Any good way to append the temp to logfile?