.p files are encrypted files where the plaintext cannot be read or modified. If you were given a pcode file, it is because the owner did not want to give you the source code. To learn more, type this at the command line:
doc pcode
Then read what pops up. Also, see:
help pcode
