use the
setReadOnly()
method on the File class. (since java 1.2)
It doesn't stop people from modifying the file but makes it likely that thy won't accidentaly modify it. They have to deliberately change the file permissions. (Note this is platform dependent. On some OS's it may have no effect whatsoever)
matfud