Appending and merging the files for data management