#Programmer: Sriram Pemmaraju #Date: March 13, 2012 #Version 1 # Open the input file "war.txt" fin = open("smallWar.txt", "r") wordList = [] # Loop that processes each line of the file for line in fin: wordList = wordList + line.split() #Close the input file fin.close() #Block of code that produces output fout = open("dictionary1.txt", "w") for word in wordList: fout.write(word+"\n") fout.close()