added code for file io, and support for the demo.
the file created is in the DDMS area where the data/my project is.