read n' write example of file