Automated decryption (substitution cipher)
I am attempting to write a Java application to decipher a fairly large piece of cipher text encrypted using a substitution cipher.
I have succesfully coded a class to process the cipher text (held in a .txt file) and store and output the frequency of each character. However, now I am wanting to replace the characters in the cipher text (and then check for correctness against a word list) I am unsure how to do this. Would it be better to make a copy of the cipher text file or replace within the original file? I am also unsure of the best general way of going about replacing the letters.
Any help greatly appreciated, my apologies if this sounds rather vague, if more information is required please let me know.

