Merge array of files