Extracts elements from mthe line in file