Append expression values at the end of a temporary file:
Create a directory for temporary files and change to that directory:
Update
x and append the new value to the file:
The file now contains the two values:
Append successive iterates to the file in a loop:
Reset to the original directory: