Need help in code for downloading the file in get REST API

Hi All,

I have requirement where i am getting a Zip file in response for a get request. I would like to store the file in a location . This is one of my steps in collection job . How can i automate in such a way that when i run the collection when this steps comes it should download the zip file and store in a location with out manual intervention. Please send the sample code or the document which will be a great help for me. I am pretty new to this API methodologies .