sometimes one wants to process only files containing specific tags or substrings for line in infileif "forcein lineline line split(xyz float(line[ ])float(line[ ])float(line[ ]forces append(( , , )other way to check for substringsstr startswith()str endswith(python has also an extensive support for regular expressions in re -module