can someone give me a sample of a decrypting funx...

the scenario is i have an encrypted file stored in a notepad.and i have to read it and decrypt it at the same time.so that the user will understand it.