Ok so I have this function, I can get it to display the original line by line but i cant get it to display the decrypted line. I think line 16 in the Decrypt function is the problem, but i dont know how to fix it.
It is supposed to read out like this, and the first line of the file I open is the key for the substitution cypher
original line
decoded line
original line
decoded line
etc etc..