while not 'atoms' in line:
        line = f.readline()
        if not line: break # break out of while if EOF