Originally posted by Terry Martinson:
Then, we you first attempt to read the file, if the magic cookie in the file does not match the one you have hard-coded, it would throw some type of exception.
This makes sure that any file you attempt to read is of the correct format (i.e. has the correct magic cookie value)
Originally posted by Seid Myadiyev:
By hard-coding you and Terry mean reading the cookie from db file at a design phase - displaying its value in console and then declaring a static constant with the same value? Did I understand you correctly?