Save results in text file

Hi everyone,

I’ve a basic question that I can not solve. I’ve just obtained a velocity field u from Stokes equation. I would like to save the results in a text file composed by 6 columns: the coordinates and the value of each component of the velocity for the corresponding position.
Can someone give me an hint?

See: How to get the solution obatained by fenics as a vector? - #7 by dokken

thanks for the reply