Changed open file method
proces lines