Newsgroups: comp.lang.python
From: Chris Angelico <ros...@gmail.com>
Date: Thu, 13 Sep 2012 00:35:30 +1000
Local: Wed, Sep 12 2012 10:35 am
Subject: Re: using text file to get ip address from hostname
On Thu, Sep 13, 2012 at 12:24 AM, <dkato...@gmail.com> wrote:
This is sounding like homework, so I'll just give you a basic pointer.
> i'm new to Python and i searched the web and could not find an answer for my issue. > i need to get an ip address from list of hostnames which are in a textfile.
You have there something that successfully resolves one hostname to an
What you want, here, is to open a file and iterate over it. The most
Opening a file:
See where that takes you; in fact, all of
Have fun, enjoy Python!
ChrisA
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||