Swapping the contents of two files