I am new to Java ,I have a tab delimited text file , and I would like to scan each 5 minutes if there were new lines added in the file. The new lines I would like to insert in an ArrayList , any hints ? thanks in advice !
Asked
Active
Viewed 65 times
0
-
Have you anything yet? – Scary Wombat Sep 04 '13 at 08:36
1 Answers
1
For this I guess you need to use Apache Camel.As using camel only for this purpose is not justice as it is a integration pattern but you can use it as it will make your work easy.Define a route and it will make the WATCH OF LOOKING FILE after every 5 mins.
Otherwise you need to write your own threads or work with Timer.You can find a good example of using timer here.