I was wondering wether it is possible to create or simulate a file with a content set at creation and the assurance that nobody can ever change the file. If possible, can I
In this case simply you have to create a file using File class after that by reference you have to call setReadOnly() method.
File f=new File("abc.txt"); f.setReadOnly();