how to make java program detect changes to a file? -
i have program reads , displays colour in jlabel
, based on input supplied input.txt file. doubt that, program able read updates supplied input.txt file?
the input.txt file supplied linux keeps updating o/p either 0 or 1.
0 - display red. 1 - display green.
i able read & display output. if input changed means manual/auto program needs restart display change in input.
what need implement file watcher warns changes in files, here oracle's documentation how directory: http://docs.oracle.com/javase/tutorial/essential/io/notification.html.
Comments
Post a Comment