How Save file ?

Mar 22 at 8:42 AM
After read a .GPX file,
I made a function that put elevation (if is zero),

How I can save the changes ?