I have a text file that stores hash values of files generated in a Java program and I would like to write Java codes to compare the hash values stored in the file to see if they match or not.
For example, the text file (md5.txt) contains the following:
File: file.doc
Hash: 0dcf2e7a00cf1b9673ddc7b699e93aa9
File: file-copy.doc
Hash: 0dcf2e7a00cf1b9673ddc7b699e93aa9
The hash values are on lines 2 and 4. Therefore, is it possible to compare alternate lines such as 2 and 4, 6 and 8 and so on?