Exporting the Transform (Position and Orientation) Values obtained from Input Actions

Hello, Can anyone tell me how to export Transform values (both Position and Orientation) in a file/text/excel or any format what can be readable? I am using Magic Leap and obtaining these transform values from Magic Leap. I can see these input values obtained from Magic Leap changes when I change the position and orientation of the headset. I need these values for the output for another project, Does anyone know the easiest way to export/fetch the Transform values?