Needed a way to determine that the files being opened belong to the library. So I write a String containing the text "JWOB" to the beginning of the index file. When the file is opened the first line is read in and if it's not that string then the program throws up a little dialog stating it encountered an error and exits with System.exit(1).
Needed a way to determine that the files being opened belong to the library. So I write a String containing the text "JWOB" to the beginning of the index file. When the file is opened the first line is read in and if it's not that string then the program throws up a little dialog stating it encountered an error and exits with System.exit(1).