def md5sum_file(file_name):
 f = open(file_name)
 digest = md5sum_str(f.read())
 f.close()
 return digest

def md5sum_file ( file_name ) : f = open ( file_name ) digest = md5sum_str ( f . read ( ) ) f . close ( ) return digest
calculate md5sum of the file .