Hello All,
I am having little problem in writing back to a property and log file.
What I am doing is i am searching a
string in a logfile and counting the occurances of the string in the file and writing the matched strings into a file which i use to mail if the occurences increase in the logfile.
If the new count of search string will be same as old count then no mail will be sent. For that I am facing a problem in writing back the new occurance count to the property file .
Plus one more problem is in creating the logfile i want the logfile to be newly created/replaced but the matched string should get appended back to back to the new file.
How do i do it. please help
Below is my sample code