Hi,
I created a video recorder which stores recording to a file. I would like to implement a method which would read the file each second, compare the current file with the old value (1 second older) and write the difference to a separate file.
I would be very thankful if anyone could explain how to do that or write a simple example. I guess there has to be a thread which compares the new value with the old one by calling a custom method compareFiles(File currentFile, File oldFile) on a given period of time. The old file could also be saved as a temporary file and the current file at the original path could be compared with temporary file.
Any suggestion about the improvement of the described logic is more than welcome!