I have some settings data, which mainly consists of various String, Integer, Currency, Single and Boolean data types. These are saved to a file when the user closes the program and loaded when it is started.
Now in order to protect the integrity of the data, I would like to append a CRC value to the data so when it is used it is possible to tell that the data hasn't been corrupted or tampered with (by comparing the saved CRC value of the loaded data with a recalculated CRC).
So what I need to be able to do is create a CRC value from the data. Could anyone give me any code that would do this easily and be effective and accurate in determining errors in the data?
Thanks in Advance,