A program to reverse text in file