Rebuilding card last transaction files

This function is used to rebuild the card last transaction files.