How do I extract the solution to specific points and save in a txt file?

Hello dear community.

I solved a transient problem on a cube domain of (6.72×6.72×0.672).
I would like to extract the solution obtained at two specific points of coordinates p1(2,3.36,0.672) and p2(5.3,3.36,0.672). And save it as a txt file.
Please can someone explain how to do this?
I would appreciate it very much if it was a simple code as an example.

Thank you very much.

See for instance: How to compute displacement and strain at an arbitrary location - #2 by dokken