I am writing a Java application in which i m writing a thread program to read a file. Every time the program is run it will create a thread and read the file. Its time consuming, I know the file will never change so I want to make a daemon thread which will read the file only once and store it in a String.
The am facing several problems- 1) Once i start the daemon thread, How do i access it again? 2)If I want to stop the daemon thread, how do i do it?
Please help.
thanks,