export user info to a file