def get_database_string(fname):
 f = open(fname)
 dtb = f.read()
 f.close()
 return dtb

def get_database_string ( fname ) : f = open ( fname ) dtb = f . read ( ) f . close ( ) return dtb
read an iraf database file parameters fname : str name of an iraf database file returns the database file as a string .