Collection - Write to a File

How to handle collection in postman by passing multiple inputs from .csv file and after completion of the test, need to display the results in the same .csv file. How can we go about doing this?