with open('plain text - preprocesshurricane.txt', 'a') as outfile:
    with open(filename, 'r') as infile:
        for tweet in infile.readlines():
            pass
How to fetch a substring from text file in python?