Fix typo: while -> file