Hello, I have a textfile.txt with data stored as
data1 data2 data3

I would like to change this into newtxtfile.txt, stored as
data2 data1

Is it any small easy way to make a code todo this?