[Solved] How do I get Python to read and extract words from a text file? [duplicate]


A sample code to copy text from one file to another. Maybe it will help you:

inputFile = open("Input.txt","r")
text = inputFile.read()
inputFile.close()
outputFile = open("Output.txt","w")
outputFile.write(text)
outputFile.close()

solved How do I get Python to read and extract words from a text file? [duplicate]