Writes a poem to a text file