created a file and wrote to it