(self, filename)
return result
Returns the contents of a file.
Returns the contents of a file.
Returns the contents of a file .
def ReadFile(self, filename):
    """Returns the contents of a file."""
    file = open(filename, 'rb')
    result = ""
    try:
      result = file.read()
    finally:
      file.close()
    return result
def ReadFile ( self , filename ) : file = open ( filename , 'rb' ) result = "" try : result = file . read ( ) finally : file . close ( ) return result