How to output the data results on the boundary

See for instance: How to impose a pressure distribution from a data file as a boundary condition (loading)? - #5 by dokken