smash a file into pieces and put it back together again