basic file io demonstrated