Save displacemnt ans stress

Hello everyone,

I have a small program that do a calculation in finit element and I would like to select all the elements and save in a file .txt theirs displacements and stresses. I have managed something with the Envelope but there are many useless information, and it takes to much different files.

Thanks for all