write users directory file in only one file