Each tiny piece of iron becomes magnetized, and its poles align with the lines of the magnetic field. Therefore, the iron filings will line up to show the field lines and can be used to determine the relative strength of the field. Closely packed lines indicate a stronger field; widely spaced lines indicate a weaker field.