1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

read words from .lst file

Discussion in 'Programming' started by Dhingcha, Aug 16, 2008.

Thread Status:
Not open for further replies.
  1. #1
    HI, I am trying to read words from a .lst file using a python script. I tried reading as if it was a normal text file but that did not work. Does anyone have a suggestion?

    This is what I tried:

    f = open("C:\\dir\\word.lst", "r")
    
    for word in f:
        print word
    
    f.close()
    Code (markup):

     
    Dhingcha, Aug 16, 2008 IP
  2. Joseph S

    Joseph S Well-Known Member

    Messages:
    1,373
    Likes Received:
    17
    Best Answers:
    0
    Trophy Points:
    155
    #2
    I can create a php code that will do that. PM me if interested.
     
    Joseph S, Aug 18, 2008 IP
Thread Status:
Not open for further replies.