How do I save the API response into a file/folder?

Hi,
I’d like to save the API responses into a folder/file. Is there a way to do it via Gatling or should I do it from inside the scala simulation?

Thanks,
Liran