Writing a term (nested structs) in human-readable form to a text file - is there a nicer way to do this?

Hey @nhpip did you try inspect/1 ?

i_am_a_term_now_a_string = inspect(term, limit: :infinity)