example 2 option 2 close and reopen file