I've written a medium-sized Java program for an exporting company. I want to limit the employees' ability to edit some files (such as a Sales Contract Log) to only the Java application's user interface. If I change the file permissions, then I assume the Java application cannot edit the files either (as the application would be run from the current user).
As one specific example, how can I allow the Java program to alter information on a log text file without allowing the user to simply open the text file and edit it however they want?