I have successfully got the wishlist collection of customer by referring the below link:
https://www.rakeshjesadiya.com/get-wishlist-collection-of-customer-by-customer-id-magento-2/
Now, I have to create the wishlist collection as a CSV file. Since, I'm new to this, I have no idea where to start.
Could anyone please help me on this?