How to create file from string and download

Hi, I want to create file .zip for download from string. Please help me