Hello Chaps,
I'm looking to write a function thats called doLog() or somthing to that effect, which will have two arguments, both or which are char.
I basicly want to create a tab delimited log.txt file that contains those details along with a date and time that event occured, So if i pass in the two arguments "had meeting with" and "bob" then it would log those like in the file like.
2007-01-05 13:42:54 Had meeting with Bob
The file is then collected by another application and parsed into the database. When the collection is made, the file is likely to be destroyed, so it doesnt continue to grow. i need this doLog() function to see the file has been deleted, create a new one and then continue to add log entries into it.
I'm running this on a Linux box, and the file will be parsed by a JAVA application that is sat on a windows box. I'm also looking to keep the overheads on the function as low as possible so they dont slow the progress of the application too much.
Thanks for any help you can offer,
Rob
I'm looking to write a function thats called doLog() or somthing to that effect, which will have two arguments, both or which are char.
I basicly want to create a tab delimited log.txt file that contains those details along with a date and time that event occured, So if i pass in the two arguments "had meeting with" and "bob" then it would log those like in the file like.
2007-01-05 13:42:54 Had meeting with Bob
The file is then collected by another application and parsed into the database. When the collection is made, the file is likely to be destroyed, so it doesnt continue to grow. i need this doLog() function to see the file has been deleted, create a new one and then continue to add log entries into it.
I'm running this on a Linux box, and the file will be parsed by a JAVA application that is sat on a windows box. I'm also looking to keep the overheads on the function as low as possible so they dont slow the progress of the application too much.
Thanks for any help you can offer,
Rob