Save Player Choices in Readable Text Document

I will be designing a level that will present participants with a corridor that branches into two hallways. As the player approaches the door of one of the hallways, they are transported to another scenario where they will repeat the process.

I would like to record the choices of the participants with a simple string that contains all of their choices as 0 or L, and 1 or R. So, if they choose the left hallway, their decision will be recorded with an L or 0 string. I imagined that I could just concatenate strings together to store all decisions as a single string. However, it appears that appending strings for each decision into an array of strings may be my best path forward.

Here is my problem:
I need to save the string, array, or whatever the variable type is, into a plain text document that I can examine at a later date for analysis. Also, if possible, I’d like to be able to print the array to screen as back-up information that can be recorded by hand.

Is there a way to save arrays or strings as text documents in the same file folder as the game? Also, is there a way to print an array of strings to screen?

Though an array of strings seems like the best way to store the data, I’m certainly not attached to that method. If anyone has any ideas for how to better store the information, I’m very open to suggestions!

Unfortunately I haven’t been able to find a solution to my problem, but a change in my requirements may make this easier to address.

I will now be running the program directly from the editor in one of the playable modes. Most likely the standalone mode. Is there a way to generate a log of the variables produced during the play session?

If not, is there a way to append text to a string without producing an array? OR Can arrays be printed to screen?

Thanks for the help!