&lt; is HTML speak for the < symbol. Is your script trying to read from a HTML document by any chance?