Saving Participant Responses to a Text File as a Single Line

Hi there!

I’m looking to run an experiment where I can save the participant responses as a text file with one single line for each participant. Some of the responses are demographic responses from the experiment settings and the rest are answers from a slider.

I’m pretty sure I need to use code to write the answers to a new file but I’m not sure how I can put the slider answers into a list and then how to append that list to a new line in a text file.

Any thoughts would be greatly appreciated!