created the WriteToFile object