Write the visited user_id to file