Login

Back

Merging data files

Merging data
Merging two files is the name given to taking both files and creating one new file out of them. For example, File one might contain: 1, 6, 9, 16 and 22, and file two might contain: 2, 5, 23, 33, 100. If you merge the files, you end up with one file containing: 1, 2, 5, 6, 9, 16, 22, 23, 33, and 100. The programmer would write a procedure to merge two files. One possible merge pseudo-code, trying hard to use the sequence, selection and iteration constructs, is as follows:

Please register to read more ......