Program that Illustrates writing to a file