On Wed, Jun 18, 2014 at 5:03 PM, cutey Love <cuteywithlove at gmail.com> wrote: > I'm trying to write data to a text file > > But I'm getting the error: > > TypeError: invalid file: <_io.TextIOWrapper Post the full traceback. By posting only the error message you're removing useful information.