title: How to read list of ip address from a text file and print it out
body: <p>*I want to print out ip addresses from textfile  <strong>(solved)</strong></p>
  
  <p>****no ip address in the textfile and error message will be shown.**  <strong>(solved)</strong></p>
  
  <p>I have attached my current codes at the bottom, can any one please help?**</p>
  
  <p>**
  ****IP addresses in the textfile will look like this.****
  **</p>
  
  <pre><code>192.168.12.1
  192.168.12.28 
  </code></pre>
  
  <p>*****And the following is my current codes...*****</p>
  
  <pre><code>f=open('output.txt','r')
  print "IP address is ", f.read()
  f.close()
  </code></pre>