in reply to Searching through a file
Use code tags. Refer to Writeup Formatting Tips.
Show your exact input data.
Show your desired output data.