How can we subscribe to file present as resource in Scala project so that any live changed to the file can be detected in the the service? Example there is a Scala code which is calculating sum of numbers from the text file , how to subscribe to that file in the code so that program can act upon immediately for any addition of new numbers in the file.
Asked
Active
Viewed 40 times
0
-
possible duplicate of http://stackoverflow.com/questions/27360977/how-to-read-files-from-resources-folder-in-scala ? – mkazma Mar 17 '16 at 15:53