coverting list back to string

Dialtone dialtone at
Mon Apr 21 21:50:13 CEST 2003

regnivon at (scn) writes:

> my quest:  i know that output.write(remove) is not correct.  you
> cannot use the 'write' method on a list.  is there a better way to
> convert the list to a string after the first element of the list has
> been removed and then output the strings to a file?  i'm a newbie
> programmer and need guru help. thank you.


input = file('c:/python22/programs/linetest.txt', 'r')
output = file('c:/python22/programs/output.txt', 'w')

for line in input:
    remove = line.split()
    remove = remove[1:]


try: troll.uses(Brain)
except TypeError, data: 
Co-Responsabile Hardware Information & Technology

More information about the Python-list mailing list