A demonstration of file read and write