Hi, I'm pretty new to this. I have the following code in a script that prints out the time (including milliseconds), I really need this data to be written to a .txt file rather than just being printed out to the console. Can someone please explain how I do this? :
Code:gettimeofday(&tv, &tz); tm=localtime(&tv.tv_sec); printf(" %d:%02d:%02d %d \n", tm->tm_hour, tm->tm_min, tm->tm_sec, tv.tv_usec/1000);
Thanks, Geester