Hi Bharat,
Do you mean that I should store it in a static variable on my data.java class
You shouldn't but you could
and everytime I access the data file. I keep checking whether it has been changed?
Not each time you access the data file, just once when you open it.
However, if I don't provide a mutator method in my class then it pretty much guarantees that it cannot be changed? Are you thinking of an external program inadverantly modifying this value?
No, I am thinking of a user which makes a mistake (choose any wrong file) when telling your server which file is its database file.
Cheers,
Phil.