View Single Post
Old May 11th, 2006, 4:15 PM   #9
Arevos
Programming Guru
 
Arevos's Avatar
 
Join Date: Aug 2005
Location: England
Posts: 1,499
Rep Power: 5 Arevos is on a distinguished road
As an aside, you can remove an object from a list more easily with the "remove" method:
words.remove("".join(orgword) + "\n")
(The newline is on the end because readlines doesn't remove it). And write a whole bunch of lines to a file via writelines:
filew=open('words.txt', 'w')
filew.writelines(words)
filew.close()
Arevos is offline   Reply With Quote