title: search data in file using python?
body: <p>i have a file file.txt i want to search a data in a file using phone number for example if i entered 996452544 then result will be Alex 996452544 alex@gmail how to do that in python i do not know i am newbie help me.</p>
  
  <p>file.txt</p>
  
  <pre><code>Alex 996452544 alex@gmail
  Jhon 885546694 jhon@gmail
  Arya 896756885 arya@gmail
  </code></pre>
  
  <p>code.py</p>
  
  <pre><code>def searchContact():
      number=raw_input("Enter phone number to search data : ")
      obj1=open("file.txt","r")
      re=obj1.read()
      print re
      obj1.close()
  
  searchContact()
  </code></pre>