open a file in python

jayshree jayshree06comp at gmail.com
Mon Jul 27 03:28:50 EDT 2009


pk = open('/home/jayshree/my_key.public.pem' , 'rb').read()

Please tell me how to open a file placed in any directory or in same
directory.

After opening this file i want to use the contain (public key ) for
encryption





thanks



More information about the Python-list mailing list