Beginning process of pushing data to text file

The process is not complete or formatted as I want, but currently the
values do push to an xml file.