Automate the Boring Stuff with Python has a project in chapter 8:
Create a Mad Libs program that reads in text files and lets the user add their own text anywhere the word ADJECTIVE, NOUN, ADVERB, or VERB appears in the text file.

It needs to create the new text file and print the results to the screen.

My solution causes a blank new file to be created and shows nothing in terminal. I am using Python 3.5.1 on OS X.

```
#! /usr/bin/env python3

with open("/Users/Maverick/madLibProject1.txt", "wt") as fout:
    with open("/Users/Maverick/madLibProject.txt", "r") as fin:
        for line in fin:
            if line == "ADJECTIVE":
                adj == input('Enter an adjective:\n')
                fout.write(line.replace('ADJECTIVE', adj))
            elif line == "NOUN":
                nou == input('Enter a noun:\n')
                fout.write(line.replace('NOUN', nou))
            elif line == "ADVERB":
                adv = input('Enter an adverb:\n')
                fout.write(line.replace('ADVERB', adv))
            elif line == "VERB":
                ver = input('Enter a verb:\n')
                fout.write(line.replace('VERB', ver))

fname = "/Users/Maverick/madLibProject1.txt"
project = open(fname, 'r')
data = project.read()
print(data)

```